@if (auth()->user()->user_type == 'emp') @php $roleId = auth()->user()->role_id; $routeNames = empPermissions($roleId); @endphp @endif

{{ $month . ' Transactions' }}

@if (isset($routeNames)) @if (in_array('Export Account', $routeNames)) @if (date('Y-m', strtotime($month)) < date('Y-m')) @else

{{ __('common.you_can_only_export_previous_month_reports') }}

@endif @endif @else @if (date('Y-m', strtotime($month)) < date('Y-m')) @else

{{ __('common.you_can_only_export_previous_month_reports') }}

@endif @endif

{{ __('common.opening_balance') }}: {{ $openingBalance }} | {{ __('common.closing_balance') }}: {{ $closingBalance }}


{{-- --}} @if (isset($result) && count($result) > 0) @php $i = pageIndex($result); @endphp @foreach ($result as $key => $row) @if ($row->transaction_type == 1) {{-- cash out --}} @elseif ($row->transaction_type == 0) @endif {{-- --}} {{-- --}} @endforeach @else @endif
{{ __('common.sr_no') }} {!! sorting('account_type', __('common.account_type'), $sortOrder, $sortEntity) !!} {!! sorting('cash_in', __('common.cash_in'), $sortOrder, $sortEntity) !!} {!! sorting('cash_out', __('common.cash_out'), $sortOrder, $sortEntity) !!}{!! sorting('closing_balance', __('common.closing_balance'), $sortOrder, $sortEntity) !!}{!! sorting('notes', __('common.notes'), $sortOrder, $sortEntity) !!} {!! sorting('created_at', __('common.created_at'), $sortOrder, $sortEntity) !!}
{!! $i++ !!} {!! $row->account_type_name !!}{!! $row->currency !!} {!! formatNumber($row->amount) !!} {!! $row->currency !!} {!! formatNumber($row->amount) !!}{!! '$' . $row->closing_balance !!}{!! $row->notes !!} {!! dateFormat($row->created_at, DISPLAY_DATETIME) !!} @if ($row->deposit > 0) @endif
{!! $result->links('pagination::bootstrap-4') !!}
{!! pageDetail($result) !!}
{!! __('common.no_records') !!}