@extends('backend.layouts.master') @section('section-title', 'Used Product') @section('page-title', 'Buy List') @if (check_permission('usedPurchase.create')) @section('action-button') New Buy @endsection @endif @push('css') @endpush @section('content')
| Buy Date | Buy No | Product | Supplier | Creator | Total Amount | {{--Total Paid | Total Due | Status | --}}Action | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $data->date }} | {{ $data->purchase_no }} | {{--{{ $purchase_item?->product?->name }} | --}}
@foreach ($purchase_item as $item)
|
{{ $data->supplier->name }} | {{ $data->user->name }} | {{ $data->total_amount }} | {{--{{ $data->total_paid }} | {{ $data->total_due }} | @if ($data->status == 0) Due @elseif($data->status == 1) Paid @elseif($data->status == 2) Returned @endif | --}}
|
|
| No Purchase Found | |||||||||||
| Total: | {{ number_format($total_amt,2) }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} | {{--{{ number_format($total_paid,2) }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} | {{ number_format($total_due,2) }} {{ empty(get_setting('com_currency')) ? : get_setting('com_currency') }} | --}}||||||||