@extends('layouts.app') @section('title', __('Purchase').' '.$purchase->purchase_number) @section('content')

{{ $purchase->purchase_number }}

{{ $purchase->purchase_date->format('d M Y') }} · {{ $purchase->supplier?->name ?? '—' }}
{{ ucfirst($purchase->status) }}
@foreach($purchase->items as $item)@endforeach
{{ __('Item') }}{{ __('Unit') }}{{ __('Qty') }}{{ __('Cost') }}{{ __('Total') }}
{{ $item->product_name }}{{ $item->unit }}{{ $item->quantity }}{{ number_format($item->unit_cost,2) }}{{ number_format($item->line_total,2) }}
{{ __('Total') }}{{ number_format($purchase->subtotal,2) }} {{ $purchase->currency_code }}
{{ __('Paid') }}{{ number_format($purchase->paid_amount,2) }}
{{ __('Due') }}{{ number_format($purchase->due_amount,2) }}
@if($purchase->due_amount>0)
{{ __('Pay Supplier Due') }}
@csrf
@endif@endsection