List of projects
Add project (s)
@if(isset($projects))
@php
$currentPage = $projects->currentPage();
$perPage = $projects->perPage();
$count = $projects->total();
$startIndex = ($currentPage - 1) * $perPage + 1;
@endphp
@foreach($projects as $index => $row)
@endforeach
@endif
@if ($projects->lastPage() > 1)
{{ $sortDirection == 'asc' ? $startIndex + $index : $count - ($startIndex + $index) + 1 }}
@if($row->project_owner_id == $userId)
@if($row->project_enable == 0)
@if(isset($row->order_status))
{{-- @if($row->order_status == '0') --}}
{{-- @endif --}}
@else
@endif
@else
@if($row->amount == 'Free' || $row->amount == '0')
@else
@endif
@endif
@endif
-
@if ($projects->onFirstPage())
@else
- @endif @php $currentPage = $projects->currentPage(); $lastPage = $projects->lastPage(); $maxPages = 5; // Number of pages to display initially $startPage = max($currentPage - floor($maxPages / 2), 1); $endPage = min($startPage + $maxPages - 1, $lastPage); @endphp @if ($startPage > 1)
- 1 @if ($startPage > 2)
- ... @endif @endif @for ($i = $startPage; $i <= $endPage; $i++) @if ($i == $currentPage)
- {{ $i }} @else
- {{ $i }} @endif @endfor @if ($endPage < $lastPage) @if ($endPage < $lastPage - 1)
- ... @endif
- {{ $lastPage }} @endif @if ($projects->hasMorePages())
- @else @endif