@extends('layouts.main') @push('styles') @endpush @section('content')
| # | {{ __('payments.vendor') }} | {{ __('payments.billing_number') }} | {{ __('payments.due_date') }} | {{ __('payments.items') }} | {{ __('payments.item_quantities') }} | {{ __('payments.item_amounts') }} | {{ __('payments.bill_total') }} | {{ __('payments.action') }} |
|---|---|---|---|---|---|---|---|---|
| {{ ($count + 1)."." }} | {{ get_name($bill->vendor, 'id', 'name', 'suppliers') }} | {{ $bill->bill_number }} | {{ streamline_date($bill->bill_due_date) }} | @php $items = explode(',', $bill->item_ids); $quantities = explode(',', $bill->item_quantities); $subtotals = explode(',', $bill->item_subtotals); @endphp
@for($x = 0; $x < count($items); $x++)
{{ get_name($items[$x], 'id', 'name', 'payment_items') }} @endfor |
@for($x = 0; $x < count($quantities); $x++)
{{ ($quantities[$x] == 1) ? $quantities[$x]." unit": $quantities[$x]." units" }} @endfor |
@for($x = 0; $x < count($subtotals); $x++)
{{ ugandan_shillings($subtotals[$x]) }} @endfor |
{{ ugandan_shillings($bill->total_amount) }} | {{ Form::model($bill->id ,['method' => 'POST', 'route' => ['payments.bill.activate', $bill->id]]) }} {{ Form::close() }} |
| {{ __('payments.total') }} | {{ ugandan_shillings($total) }} |