dbfdg @extends('layouts.admin') @section('page-title') {{ __('Profit & Loss') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
{{ Form::open(['route' => ['profit.loss.export']]) }} {{ Form::close() }}
@endsection @section('content')
{{--
--}}
@php $authUser = \Auth::user()->creatorId(); $user = App\Models\User::find($authUser); @endphp
{{ __('Account') }}
{{ _('Account Code') }}
{{ __('Total') }}
@php $totalIncome = 0; $netProfit = 0; $totalCosts = 0; $grossProfit = 0; @endphp @foreach ($totalAccounts as $accounts) @if ($accounts['Type'] == 'Income') @endif @if ($accounts['Type'] == 'Costs of Goods Sold') @endif @endforeach @if ($grossProfit > 0) @endif @foreach ($totalAccounts as $accounts) @if ($accounts['Type'] == 'Expenses') @endif @endforeach
@endsection