@extends('layouts.app') @section('title', $supplier->name) @section('page-title', 'Detail Supplier') @section('content')
✏️ Edit ← Kembali
🤝
{{ $supplier->name }}
Rp {{ number_format($totalPembelian, 0, ',', '.') }}
Total nilai pembelian
Informasi Kontak
Nama {{ $supplier->name }}
Telepon {{ $supplier->phone ?? '—' }}
Email {{ $supplier->email ?? '—' }}
Alamat {{ $supplier->address ?? '—' }}
{{-- Riwayat Pembelian --}}
🛒 Riwayat Pembelian
{{ $supplier->pembelians->count() }} transaksi
@forelse($supplier->pembelians as $p) @empty @endforelse
Tanggal Barang Qty Harga/Satuan Total
{{ $p->tanggal->format('d M Y') }} {{ $p->barang->name ?? '-' }} {{ $p->qty }} {{ $p->barang->satuan ?? '' }} Rp {{ number_format($p->harga_satuan, 0, ',', '.') }} Rp {{ number_format($p->total_harga, 0, ',', '.') }}
Belum ada riwayat pembelian
@endsection