@extends('layouts.template') @section('content')
@php $subtotal_amount = 0; $total_amount_usd = 0; $total_amount_mzm = 0; @endphp {!!Form::open(['url'=>'logistic/expense/summary/update/edit','method' => 'POST','id'=>'frm_expense','data-toggle' => "validator",'files' => true])!!}

Expense Summary and listing per Job

@foreach($expense as $exp) @php if($exp['discount'] != 0) { $subtotal_amount = $subtotal_amount - (($exp['discount'] * $exp['total_amount_usd']) / 100) ; } $subtotal_amount = $subtotal_amount +$exp['total_amount_usd']; $total_amount_usd = $total_amount_usd+$exp['total_amount_usd']; $total_amount_mzm = $total_amount_mzm+$exp['total_amount_mzm']; @endphp {!!Form::hidden('ids[]',$exp['id'])!!} @endforeach
Supplier Name Proforma Inv. Inv Nr Inv Date Amount USD Amount MZM Discount Status
{{$exp['name']}} {{$exp['performa_inovice']}} {{$exp['invoice_no']}} {{$exp['inovice_date']}} {{$exp['total_amount_usd']}} {{$exp['total_amount_mzm']}} {{$exp['discount']}} {{$exp['status']}}
{!!Form::submit('update')!!} back
{!!Form::close()!!}
@endsection