@extends('layouts.app') @section('title', 'Detail Transaksi - ' . $pembelian->nomor_transaksi) @section('content')

Detail Transaksi

{{ $pembelian->nomor_transaksi }}

Kembali Edit
@if(session('success')) @endif
Informasi Pembeli
@if($pembelian->nomor_hp) @endif @if($pembelian->alamat_pembeli_display) @endif
Nama: {{ $pembelian->nama_pembeli_display }}
No. HP: {{ $pembelian->nomor_hp }}
Alamat: {{ $pembelian->alamat_pembeli_display }}
Tanggal: {{ \Carbon\Carbon::parse($pembelian->tanggal_pembelian)->format('d F Y') }}
Tipe Transaksi: {!! $pembelian->tipe_transaksi_badge !!}
Status Bayar: {!! $pembelian->status_pembayaran_badge !!}
Metode Bayar: {{ ucfirst(str_replace('_', ' ', $pembelian->metode_pembayaran)) }}
Item Pembelian ({{ $pembelian->items->count() }} item)
@foreach($pembelian->items as $index => $item) @endforeach
# Item Harga Satuan Qty Diskon Subtotal
{{ $index + 1 }}
{{ $item->nama_item }}
{!! $item->item_type_badge !!} @if($item->deskripsi_item)
{{ $item->deskripsi_item }} @endif
{{ $item->harga_satuan_format }} {{ $item->quantity }} {{ $item->unit }} @if($item->diskon_item_persen > 0) {{ $item->diskon_item_persen }}%
{{ $item->diskon_item_amount_format }} @else - @endif
{{ $item->subtotal_item_format }}
@if($pembelian->catatan)
Catatan Transaksi

{{ $pembelian->catatan }}

@endif
Ringkasan Pembayaran
@if($pembelian->diskon_persen > 0) @endif @if($pembelian->ppn_persen > 0) @endif @if($pembelian->biaya_lain > 0) @endif
Subtotal: {{ $pembelian->subtotal_format }}
Diskon ({{ $pembelian->diskon_persen }}%): -{{ $pembelian->diskon_amount_format }}
PPN ({{ $pembelian->ppn_persen }}%): {{ $pembelian->ppn_amount_format }}
Biaya Lain: @if($pembelian->keterangan_biaya_lain)
{{ $pembelian->keterangan_biaya_lain }} @endif
{{ number_format($pembelian->biaya_lain, 0, ',', '.') }}
Total Bayar: {{ $pembelian->total_amount_format }}
@if($pembelian->status_pembayaran === 'lunas' && $pembelian->tanggal_bayar)
Informasi Pembayaran
Tanggal Bayar: {{ \Carbon\Carbon::parse($pembelian->tanggal_bayar)->format('d F Y') }}
Metode: {{ ucfirst(str_replace('_', ' ', $pembelian->metode_pembayaran)) }}
Status: {!! $pembelian->status_pembayaran_badge !!}
@endif @if($pembelian->template_invoice)
Template Invoice

{{ $pembelian->templateInvoice->nama_template }}

{{ $pembelian->templateInvoice->deskripsi }}
@endif
Log Aktivitas
Transaksi Dibuat

{{ \Carbon\Carbon::parse($pembelian->created_at)->format('d F Y, H:i') }}

@if($pembelian->status_pembayaran === 'lunas' && $pembelian->tanggal_bayar)
Pembayaran Lunas

{{ \Carbon\Carbon::parse($pembelian->tanggal_bayar)->format('d F Y') }}

@endif @if($pembelian->updated_at != $pembelian->created_at)
Terakhir Diupdate

{{ \Carbon\Carbon::parse($pembelian->updated_at)->format('d F Y, H:i') }}

@endif
@endsection @push('scripts') @endpush @push('styles') @endpush