Daftar Mentor

Kelola data mentor yang terdaftar di sistem.

{{-- ✅ TOMBOL PILIH --}} Tambah Mentor
@if (session('success'))
✅ {{ session('success') }}
@endif
@if(request('per_page')) @endif
@if(request('search')) @endif
@if($mentors->count() > 0)
@endif @forelse ($mentors as $mentor)
@if ($mentor->photo) {{ $mentor->name }} @else
@endif

{{ $mentor->name }}

#{{ $loop->iteration }}
@if($mentor->gmail)

{{ $mentor->gmail }}

@endif @if($mentor->description)

{{ $mentor->description }}

@endif
@if($mentor->instagram) @endif @if($mentor->linkedin) @endif
👁️ ✏️
@csrf @method('DELETE')
@empty
Belum ada mentor yang terdaftar.
@endforelse
@if(request('per_page') !== 'all') @php $currentPage = $mentors->currentPage(); $lastPage = $mentors->lastPage(); $perPage = request('per_page', 5); $search = request('search'); $from = $mentors->firstItem() ?? 0; $to = $mentors->lastItem() ?? 0; $total = $mentors->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 }} mentor @if ($lastPage > 1) @endif
@endif @endif
0 mentor dipilih
@csrf @method('DELETE')
⚠️

Hapus Mentor?

Kamu yakin ingin menghapus 0 mentor yang dipilih?
Tindakan ini tidak dapat dibatalkan.