@extends('pdf.reports.layouts.pdf') @section('style') @endsection @section('content') @php $current = 0; $first = 0; $second = 0; $third = 0; $total = 0; @endphp @foreach($projects as $project) @php $current += $project->current; $first += $project->first; $second += $project->second; $third += $project->third; $total += $project->total; @endphp @endforeach
Project #
Name
Current
31-60 Days
61-90 Days
90 + Days
Total
{{$project->id}} {{$project->customer->LastName}} {{$project->customer->FirstName}} {{AppHelper::formatPrice($project->current)}} {{AppHelper::formatPrice($project->first)}} {{AppHelper::formatPrice($project->second)}} {{AppHelper::formatPrice($project->third)}} {{AppHelper::formatPrice($project->total)}}
{{$office->OfficeName}} Totals {{AppHelper::formatPrice($current)}} {{AppHelper::formatPrice($first)}} {{AppHelper::formatPrice($second)}} {{AppHelper::formatPrice($third)}} {{AppHelper::formatPrice($total)}}
@endsection