{{-- resources/views/pesanan_kartu/index.blade.php --}} @extends('layouts.dashboard') @section('title', 'Pesanan Kartu Anggota') @section('page-title', 'Kelola Pesanan Kartu') @section('content') @php $authUser = auth()->user(); $role = strtolower(trim((string) ($authUser->role ?? ''))); $rolesBolehPesan = [ 'superadmin','dpp','dpd_pengurus','dpd_operator','dpc_pengurus','dpc_operator','ranting_pengurus','ranting_operator', ]; $rolesBolehProses = ['joudie', 'dpp', 'superadmin']; $rolesBolehAktif = ['joudie']; $canPesan = in_array($role, $rolesBolehPesan, true); $canProses = in_array($role, $rolesBolehProses, true); $canAktif = in_array($role, $rolesBolehAktif, true); @endphp @push('styles') @endpush
| No. Pesanan | Tgl Pesan | Pemesan | Bukti | Jml Item | Total | Billing Bayar | Status Kartu | Aksi |
|---|---|---|---|---|---|---|---|---|
|
#{{ $nota->no_pesanan }}
|
{{ $tglTampil }} |
{{ $namaPemesan ?: ($nikPemesan ?: 'Anonim') }}
@if(!empty($waPemesan))
@endif
@if($lokasiTampil === '-' && empty($provId) && empty($kotaId) && empty($kecId))
@endif
|
{{ $hasBukti ? 'Sudah upload' : 'Belum ada' }}
|
{{ $jmlItem }} | Rp {{ number_format($total, 0, ',', '.') }} | {{ ucfirst($statusBayar) }} | {{ $labelKartu }} |
@if($bolehProsesUi)
@endif
@if($bolehAktifUi)
@endif
@if(!$disableHapus)
@endif
|
Belum ada pesanan kartuMulai buat nota pesanan pertama Anda |
||||||||
Mulai buat nota pesanan pertama Anda