@extends('app.master') @section('title',$title) @section('breadcrumb') @include('app.layouts.rent.breadcrumb',[ 'pageTitle' => $title, 'lists' => [ [ 'link' => '#', 'name' => 'Accounting Reports', ], [ 'link' => 'accounting.reports.trialbalance', 'name' => 'Profile & Loss', ] ] ]) @endsection @php $unique = uniqid(); /** * EXPECTED BEHAVIOR * Income (CR) * Expense (DR) * EXEPTIONS WILL BE SHOWN IN BRACKETS */ $period = date('F, Y',strtotime($yearFrom.'-'.$monthFrom.'-01')).' To '.date('F, Y',strtotime($yearTo.'-'.$monthTo.'-01')); $fileName = str_replace('&','_',$title).'_'.str_replace(' ','_',$period); $companyLogo = getBase64($company['company.logo']); $companyFooterLogo = getBase64($company['company.footerLogo']); @endphp @section('content')
@yield('title')
From
To
Interval

Statement of Profit or Loss and Other Comprehensive Income

{{ $company['company.name'] }}
@php # Initialize foreach($dates as $date){ $totalSales[$date] = $totalPurchase[$date] = $totalExpense[$date] = $totalOverhead[$date] = 0; } $tab = '        '; $colspan = count($dates)+1; @endphp @if(!in_array($company['company.logo'],['','undefined'])) @endif
Company: {{ $company['company.name'] }}
Report: Statement of Profit or Loss and Other Comprehensive Income
Period: {{ $period }}