@push('styles') @endpush
| Date | Supplier | Invoice no. | {{--Purchase Invoice | --}}Quantity | Price | Shipping & Insurance | {{--Paid | --}}Total Price | Total Euro Price | Products | Action | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ date('d-m-Y', strtotime($purchase->purchase_date)) }} | {{ $purchase->supplier ? $purchase->supplier->name : 'Not Define' }} | {{ $purchase->purchase_invoice }} | {{--{{ $purchase->purchase_invoice }} | --}}{{ $purchase->purchase_products_sum_quantity }} | {{-- @dd(number_format($tota_price,2)) --}}{{ number_format($tota_price, 2) . ' ' . strtoupper($purchase->purchase_price_type) }} | {{ $purchase->shipping ? $purchase->shipping->logistic_fee . ' ' . strtoupper($purchase->purchase_price_type) : 'Not Define' }} | {{--{{ $purchase->paid }} | --}}{{ $purchase->shipping ? number_format($tota_price + $purchase->shipping->logistic_fee, 2) . ' ' . strtoupper($purchase->purchase_price_type) : number_format($tota_price, 2) . ' ' . strtoupper($purchase->purchase_price_type) }} | {{ number_format($purchase->payment()->sum('euro_equivalent_price'), 2) }} | {{--{{ $purchase->notes }} | --}}{{-- --}} | @if (auth()->user()->role->name == 'staff' || auth()->user()->role->name == 'companyStaff')@if (auth()->user()->is_edit == 1) @if ($purchase->checkImeiList() > 0) @endif !( !empty($purchase->purchase_invoice_file) && file_exists( storage_path('app/public/' . $purchase->purchase_invoice_file) ) ), ])> @else @endif @if (auth()->user()->is_delete == 1) @else @endif | @else@if ($purchase->checkImeiList() > 0) @endif !( !empty($purchase->purchase_invoice_file) && file_exists( storage_path('app/public/' . $purchase->purchase_invoice_file) ) ), ])> | @endif|
| No Data! | ||||||||||||||