@extends('adminlte::page') @section('content')

Savings by broker

Old version
@foreach ($primary_brokers as $pb) @endforeach @foreach ($primary_brokers as $pb) @endforeach @foreach ($primary_brokers as $pb) @endforeach @foreach ($primary_brokers_data as $week_id => $brokers_data) @foreach ($primary_brokers as $pb) @foreach ($brokers_data as $broker) @endforeach @endforeach @endforeach
{{ $pb->name }}Total
US CANUS CAN
Total {{ number_format($total_primary_brokers[$pb->id]['profit_us'], 2) }} {{ number_format($total_primary_brokers[$pb->id]['profit_cad'], 2) }}{{ number_format($total->savings_usd, 2) }} {{ number_format($total->savings_cad, 2) }}
{{ $week_id }} {{ number_format($broker[$pb->id]['profit_us'], 2) }} {{ number_format($broker[$pb->id]['profit_cad'], 2) }}{{number_format($total_by_week_id[$week_id]['profit_us'],2)}} {{number_format($total_by_week_id[$week_id]['profit_cad'],2)}}
@foreach ($secondary_brokers as $pb) @endforeach @foreach ($secondary_brokers as $pb) @endforeach @foreach ($secondary_brokers as $pb) @endforeach @foreach ($secondary_brokers_data as $week_id => $brokers_data) @foreach ($secondary_brokers as $pb) @foreach ($brokers_data as $broker) @endforeach @endforeach @endforeach
{{ $pb->name }}Total
US CANUS CAN
Total {{ number_format($total_secondary_brokers[$pb->id]['profit_us'], 2) }} {{ number_format($total_secondary_brokers[$pb->id]['profit_cad'], 2) }}{{ number_format($total->savings_usd, 2) }} {{ number_format($total->savings_cad, 2) }}
{{ $week_id }} {{ number_format($broker[$pb->id]['profit_us'], 2) }} {{ number_format($broker[$pb->id]['profit_cad'], 2) }}{{number_format($total_by_week_id_secondary[$week_id]['profit_us'],2)}} {{number_format($total_by_week_id_secondary[$week_id]['profit_cad'],2)}}
@stop @section('css') @stop @section('js') @stop