@extends('pdf.reports.layouts.pdf') @section('style') @endsection @section('content')
| Salesperson | {{$year}} | @foreach($months as $month){{$month}} | @endforeachTotal | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$name}} | # Sales | @foreach($months as $k => $month){{(isset($row[$k]))?$row[$k]:0}} | @endforeach{{array_sum($row)}} | ||||||||||||
| $ Sales | @foreach($months as $k => $month){{(isset($row[$k]))?\AppHelper::formatPricePdf($row[$k]):0}} | @endforeach${{\AppHelper::formatPricePdf(array_sum($row))}} | |||||||||||||
| Office totals | @else@endif | {{$labels[$key]}} | @if ($key == 'salesAmount') @foreach($months as $k => $month){{(isset($row[$k]))?\AppHelper::formatPricePdf($row[$k]):0}} | @endforeach${{\AppHelper::formatPricePdf(array_sum($row))}} | @else @foreach($months as $k => $month){{(isset($row[$k]))?$row[$k]:0}} | @endforeach{{array_sum($row)}} | @endif|||||||||