@extends('layouts.master') @section('title', 'Account Statement | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.account statement')) @section('css') @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.account statement') }}
{{ __('basic.new entry') }} {{ __('basic.print') }} {{ __('basic.delete account') }} {{ __('basic.search filter') }}
{{ __('basic.account statement') }}
{{ $account->name }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}
{{ __('basic.currency') }} {{ $system_currency->name }}
{{ __('basic.account statement') }}
@php $total_debit = 0; $total_credit = 0; $net_balance = 0; @endphp @foreach ($account->entry_items as $item) @php $total_debit += $item->debit_local; $total_credit += $item->credit_local; $net_balance += $item->account_balance_local; @endphp @endforeach
{{ __('basic.transaction') }} {{ __('basic.debit') }} {{ __('basic.credit') }} {{ __('basic.current balance') }}
@php $icon = "fas fa-wallet"; $icon_color = "main-color"; @endphp

{{ "(". $item->entry->new_id . ")" . $item->date }}

{{ $item->description . "(". $item->code . ")" }}

{{ $item->debit_local }} {{ $system_currency->code }}
@if($item->entry->currency_rate)
{{ $item->debit }} {{ $item->currency->code }}
@endif
{{ $item->credit_local .' ' . $system_currency->code}}
@if($item->entry->currency_rate)
{{ $item->credit }} {{ $item->currency->code }}
@endif
{{ $item->account_balance_local .' ' . $system_currency->code}}
@if($item->entry->currency_rate)
{{ $item->account_balance }} {{ $item->currency->code }}
@endif
{{ __('basic.total') }} {{ $total_debit }} {{ $total_credit }} {{ $net_balance }}
@endsection @section('js') {{-- data table --}} @endsection