Daftar Tenant

@if(request('search')) @endif
@if (session('success'))
{{ session('success') }}
@endif
@forelse ($tenants as $tenant)
@if ($tenant->photo) {{ $tenant->name }} @else
@endif

{{ $tenant->name }}

#{{ $loop->iteration }}
@if ($tenant->instagram) Instagram @endif @if ($tenant->linkedin) ๐ŸŒ Website @endif @if ($tenant->gmail) ๐Ÿ”— Link @endif
๐Ÿ‘๏ธ Lihat โœ๏ธ Edit
@csrf @method('DELETE')
@empty

Belum ada tenant

Mulai dengan menambahkan tenant pertama Anda.

Tambah Tenant
@endforelse
@if(request('per_page') !== 'all') @php $currentPage = $tenants->currentPage(); $lastPage = $tenants->lastPage(); $perPage = request('per_page', 5); $search = request('search'); $from = $tenants->firstItem() ?? 0; $to = $tenants->lastItem() ?? 0; $total = $tenants->total(); $window = 1; $rangeStart = max(2, $currentPage - $window); $rangeEnd = min($lastPage - 1, $currentPage + $window); $pagesWithDots = [1]; if ($rangeStart > 2) $pagesWithDots[] = '...'; for ($i = $rangeStart; $i <= $rangeEnd; $i++) $pagesWithDots[] = $i; if ($rangeEnd < $lastPage - 1) $pagesWithDots[] = '...'; if ($lastPage > 1) $pagesWithDots[] = $lastPage; $buildUrl = function(int $page) use ($perPage, $search): string { $params = ['page' => $page, 'per_page' => $perPage]; if ($search) $params['search'] = $search; return url()->current() . '?' . http_build_query($params); }; @endphp @if ($total > 0)
Menampilkan {{ $from }}โ€“{{ $to }} dari {{ $total }} tenant @if ($lastPage > 1) @endif
@endif @endif
0 tenant dipilih
@csrf @method('DELETE')