{{-- ShowModal Purchase --}} {{ __('Show Purchase') }} - {{ __('Reference') }}: {{ $purchase?->reference }} @if ($purchase != null)
{{ __('PDF') }}
@endif
{{ __('Supplier Info') }}:
{{ $purchase?->supplier?->name }}
{{ $purchase?->supplier?->address }}
{{ __('Email') }}: {{ $purchase?->supplier?->email }}
{{ __('Phone') }}: {{ $purchase?->supplier?->phone }}
{{ __('Invoice Info') }}:
{{ __('Invoice') }}: {{ $purchase?->reference }}
{{ __('Date') }}: {{ format_date($purchase?->date) }}
{{ __('Status') }}: @php $badgeType = $purchase?->status->getBadgeType(); @endphp {{ $purchase?->status->getName() }}
{{ __('Payment Status') }} : @php $type = $purchase?->payment_status->getBadgeType(); @endphp {{ $purchase?->payment_status->getName() }}
{{ __('Product') }} {{ __('Unit Cost') }} {{ __('Quantity') }} {{ __('Subtotal') }} @if ($purchase != null) @foreach ($purchase->purchaseDetails as $item) {{ $item->name }}
{{ $item->code }}
{{ format_currency($item->unit_price) }} {{ $item->quantity }} {{ format_currency($item->sub_total) }}
@endforeach @endif
@if ($purchase?->discount_percentage) {{ __('Discount') }} ({{ $purchase?->discount_percentage }}%) {{ format_currency($purchase?->discount_amount) }} @endif @if ($purchase?->tax_percentage) {{ __('Tax') }} ({{ $purchase?->tax_percentage }}%) {{ format_currency($purchase?->tax_amount) }} @endif @if (settings()->show_shipping == true) {{ __('Shipping') }} {{ format_currency($purchase?->shipping_amount) }} @endif {{ __('Grand Total') }} {{ format_currency($purchase?->total_amount) }}
{{-- End ShowModal --}}