@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('payments.inactive_bills') }}

@include('expenses::payments.menu') @include('flash::message')
{{-- {{ Form::open(['method'=>'post','route' => 'payments.bills']) }}--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- {{ Form::submit('Submit', ['class'=>'btn btn-success btn-rounded btn-block pull-right']) }}--}} {{--
--}} {{--
--}} {{--
--}} {{-- {{ Form::close() }}--}} {{--
--}}
@if(isset($display))

{!! isset($display) ? $display : '' !!}

@endif

@php $count = 0; $total = 0; @endphp @if($bills) @if(count($bills) > 0) @foreach( $bills as $bill) @php $items = explode(',', $bill->item_ids); $quantities = explode(',', $bill->item_quantities); $subtotals = explode(',', $bill->item_subtotals); @endphp @php $count ++; $total += $bill->total_amount; @endphp @endforeach @endif @endif
# {{ __('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) }} @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) }}
@endsection @push('scripts') @endpush