@extends('adminlte::page') @section('title', 'Costs') @section('content_header') @stop @section('content')
Date | Invoice# | Country | Statement total | Cost for carriers | Cost for drivers | Difference | @foreach ($statements as $statement)
---|---|---|---|---|---|---|
{{$statement['date']}} | {{$statement['invoice_no']}} | {{$statement['country']}} | {{$statement['statement_total']}} | @if(isset($statement['carriers_cost'])) {{$statement['carriers_cost']}} @else - @endif | @if(isset($statement['drivers_cost'])){{$statement['drivers_cost']}} @else - @endif | {{(int)$statement['statement_total']-(int)($statement['carriers_cost']+$statement['drivers_cost'])}} |