@extends ('layouts.default') @section ('content')
@if (Session::has('error'))
{{{ Session::get('error') }}}
@endif
@include('xero.partials._header')
{{ $type }} TURNOVER
{{ $branch1 }} {{ (isset($averages) && $type != 'MONTHLY') ? ' (Avg: R' . $averages[0] . ')' : '' }}
{{ $branch2 }} {{ (isset($averages) && $type != 'MONTHLY') ? ' (Avg: R' . $averages[1] . ')' : '' }}
@if ($type !== 'MONTHLY')
@endif
@if ($type == 'MONTHLY') @foreach($locations as $keys => $items)
@include('xero.graphs.income_compare_graph_dyn', array( 'domelement' => "income_graph$keys" , 'graph_datas' => json_encode($graph_datas[$keys]) , 'title' => "Month Turnover ($headings[$keys])"))
(Avg: {{ $averages[$keys][0] }})
{{ $headings[$keys] }}
(Avg: {{ $averages[$keys][1] }})
@foreach($items as $key => $item)
{{ $key }}
@if ($item['loc1_income'] == "-") {{ $item['loc1_income'] }} @else {{ $currency }} {{ $item['loc1_income'] }} @endif
|
-
-
-
|
@if ($item['loc2_income'] == "-") {{ $item['loc2_income'] }} @else {{ $currency }} {{ $item['loc2_income'] }} @endif
@endforeach
@endforeach @else @include('xero.graphs.income_compare_graph') @foreach($locations as $key => $items)
{{ $items['date'] }}
@if ($items['loc1_income'] == "-") {{ $items['loc1_income'] }} @else {{ $currency }} {{ $items['loc1_income'] }} @endif
|
-
-
-
|
@if ($items['loc2_income'] == "-") {{ $items['loc2_income'] }} @else {{ $currency }} {{ $items['loc2_income'] }} @endif
@endforeach @endif
@include('xero.partials._branch_selector') @include('xero.partials._footer') @stop