@extends('admin.layout.master') {{-- sidebar active --}} @section('open-pemasaran', 'open') @section('menu-pemasaran', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('menu-pemasaran-laporan-penjualan', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('addCss') @endsection @section('content') {{-- breadcrumb --}}
Pemasaran › Laporan Penjualan
{{-- top bar --}}
Reset
{{-- top bar --}}
@can('export penjualan') Export .xlsx @endcan + Tambah Baru
{{-- table --}}
@forelse ($sales as $sale) @php $isPo = $sale->stock_type === 'po'; @endphp {{-- Kolom Tipe Stok --}} @empty @endforelse
Sale Id Tanggal Laporan Tanggal Penjualan Penanggung Jawab Provinsi Tipe Stok Status Aksi
{{ $sale->id }} {{ $sale->created_at->format('d/m/Y') }} {{ \Carbon\Carbon::parse($sale->sale_date)->format('d/m/Y') }} {{ $sale->personResponsible?->name ?? '-' }} {{ $sale->customer_province }} {{ $isPo ? 'PO' : 'RS' }} {{ $sale->status }}
Riwayat Sunting
@csrf @method('DELETE')
Belum ada data penjualan
{{-- footer / pagination --}}
{{ $sales->links() }}
@endsection @section('addJs') @endsection