@extends('layouts.master') @section('css') @endsection @section('title') Profit & Loss Account @endsection @section('content')
Profit & Loss Account
Current Financial Year :- {{ \Carbon\Carbon::parse($currentFinancial->fy_from)->format('d M y') }} - {{ \Carbon\Carbon::parse($currentFinancial->fy_to)->format('d M y') }}
Detailed
@php $monthStartDate = Carbon\Carbon::now()->startOfMonth()->format('Y-m-d'); $monthEndDate = Carbon\Carbon::now()->endOfMonth()->format('Y-m-d'); $startDate = app('request')->input('from_date') ?? $monthStartDate; $endDate = app('request')->input('to_date') ?? $monthEndDate; @endphp
Dr
Cr
Gross Profit & Loss
@if ($openingStockDrCr == 'Dr') @endif @foreach ($groups as $group) @if ($group->amount != 0) @if ($group->closing_dr_cr == 0) @endif @endif @endforeach @if ($closingStockDrCr == 'Dr') @endif @if ($isProfit) @endif
Particulars Amount
Opening Stock {{ number_format($openingStock, 2) }}
{{ $group->name }} {{ number_format($group->amount, 2) }}
Closing Stock {{ number_format($closingStock, 2) }}
Gross Profit {{ number_format($grossProfitOrLoss, 2) }}
Total {{ number_format($debitTotal, 2) }}
@if ($openingStockDrCr == 'Cr') @endif @foreach ($groups as $group) @if ($group->amount != 0) @if ($group->closing_dr_cr == 1) @endif @endif @endforeach @if ($closingStockDrCr == 'Cr') @endif @if (!$isProfit) @endif
Particulars Amount
Opening Stock {{ number_format($openingStock, 2) }}
{{ $group->name }} {{ number_format($group->amount, 2) }}
Closing Stock {{ number_format($closingStock, 2) }}
Gross Loss {{ number_format($grossProfitOrLoss, 2) }}
Total {{ number_format($creditTotal, 2) }}
{{--
Total {{ number_format($debitTotal, 2) }} Total {{ number_format($creditTotal, 2) }}
--}}
Net Profit & Loss
@if (!$isProfit) @endif @foreach ($netProfitGroups as $netProfitGroup) @if ($netProfitGroup->amount != 0) @if ($netProfitGroup->closing_dr_cr == 0) @endif @endif @endforeach @if ($isNetProfit) @endif
Particulars Amount
Gross Loss {{ number_format($grossProfitOrLoss, 2) }}
{{ $netProfitGroup->name }} {{ number_format($netProfitGroup->amount, 2) }}
Net Profit {{ number_format($netProfitOrLoss, 2) }}
Total {{ number_format($netProfitDebitTotal, 2) }}
@if ($isProfit) @endif @foreach ($netProfitGroups as $netProfitGroup) @if ($netProfitGroup->amount != 0) @if ($netProfitGroup->closing_dr_cr == 1) @endif @endif @endforeach @if (!$isNetProfit) @endif
Particulars Amount
Gross Profit {{ number_format($grossProfitOrLoss, 2) }}
{{ $netProfitGroup->name }} {{ number_format($netProfitGroup->amount, 2) }}
Net Loss {{ number_format($netProfitOrLoss, 2) }}
Total {{ number_format($netProfitCreditTotal, 2) }}
{{--
Total {{ number_format($netProfitDebitTotal, 2) }} Total {{ number_format($netProfitCreditTotal, 2) }}
--}}
{{-- Print Modal --}} {{-- Export --}} @endsection @section('script') @endsection