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
@php $totalIncome = 0; $netProfit = 0; $totalCosts = 0; $grossProfit = 0; @endphp
{{ __('Expenses') }}
@foreach ($totalAccounts as $accounts) @if ($accounts['Type'] == 'Expenses' || $accounts['Type'] == 'Costs of Goods Sold') @endif @endforeach
{{ __('Income') }}
@foreach ($totalAccounts as $accounts) @if ($accounts['Type'] == 'Income') @endif @endforeach
@endsection