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

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

@include('flash::message')
{{ Form::open(['method' => 'POST', 'route' => 'payments.print_payment_voucher_detail', 'id' =>'voucherPrint', 'target'=>'_blank']) }}
{{ __('payments.new_payment') }}
{{ Form::close() }}

@php $total = 0; @endphp @foreach( $payment as $item) @php $total += $item->amount; @endphp @endforeach
{{ __('payments.item') }} {{ __('payments.vendor') }} {{ __('payments.item_memo') }} {{ __('payments.quantity') }} {{ __('payments.unit_cost') }} {{ __('payments.amount') }}
{{ get_name($item->item_id, 'id', 'name', 'payment_items') }} {{ get_name($item->vendor, 'id', 'name', 'suppliers') }} {{ $item->item_memo }} {{ $item->quantity }} {{ ugandan_shillings($item->unit_cost) }} {{ ugandan_shillings($item->amount) }}
{{ __('payments.total') }} {{ ugandan_shillings($total) }}
@endsection @push('scripts') @endpush