@auth @extends('admin') @section('content')
@php $n=1; @endphp @forelse ($posts as $post) @php $items = App\Models\Detailpenjualan::leftjoin('barangs as a', 'detailpenjualans.idproduk', '=', 'a.id') ->where('idpenjualan','=',$post->id)->get(['detailpenjualans.*','a.barang as barang']); @endphp @empty @endforelse
# Pelanggan Order Total
{{ $n++ }} {{ $post->nama }}
{{ $post->telp }}
{{ $post->alamat }}
@foreach ($items as $item) @endforeach
{{ $item->barang }} {{ number_format($item->jumlahproduk) }} Rp. {{ number_format($item->subtotal) }}
Rp. {{ number_format($post->total) }} Hapus
Data Kategori belum Tersedia.
@endsection @endauth