@extends('layouts.main') @section('contentinner') @section('title') Income Statement @stop @section('navigation') @stop @section('msghead_menu') @stop

{{$company->company_name}}
Income Statement
For the Route NO. {{$route_assignment->id}} , Departure on {{\Carbon\Carbon::parse($route_assignment->departure_date)->toFormattedDateString()}}

{{--*/ $revenue = 0 /*--}} @foreach($invoices as $invoice) {{--*/ $revenue +=$revenue_ /*--}} @endforeach {{----*/ $cost_total = 0 /*----}} @foreach($expenses as $expense) {{----*/ $cost_total += $expense['value'] /*----}} @endforeach
Invoice {{$invoice->id}}: {{number_format($revenue_ = $invoice->destination->amount *$invoice->invoice->exchange_rate)}}
Total Revenues {{number_format($revenue)}}
{{$expense['expense_name']}}: {{number_format($expense['value'])}}
Total Expenses {{number_format($expense_total= $cost_total)}}
@stop