@extends('layouts.master') @section('title', 'Treasures | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.treasury account')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
@if ($treasury->type == 1) @php $type = __('basic.treasury'); $icon = "fas fa-wallet"; $icon_color = "prog-color-btn"; @endphp @else @php $type = __('basic.bank'); $icon = "fas fa-university"; $icon_color = "active-color-btn"; @endphp @endif
{{ __('basic.type') }}
{{ $type }}
@php $icon = ""; $icon_color = "main-color"; $acc_color = "active-color-btn"; @endphp
{{ __('basic.main account') }}
@if($treasury->main_account == 1)
{{ __('basic.main') }}
@else
{{ __('basic.active') }}
@endif
{{ __('basic.account') }}

{{ $treasury->code }} {{ $treasury->name }}

{{ __('basic.current balance') }}

{{ $treasury->balance }} {{ $system_currency->code }}

@foreach ($credit_stat as $item) @php $total_currency_amount = $item->debit - $item->credit; @endphp
{{ $item->currency->name }}: {{ $total_currency_amount . " " . $item->currency->code }}
@endforeach
@foreach ($treasury->entry_items as $item) @endforeach
{{ __('basic.transaction') }} {{ __('basic.deposit') }} {{ __('basic.withdraw') }} {{ __('basic.balance after') }}
@php $icon = "fas fa-wallet"; $icon_color = "main-color"; @endphp

{{ "(". $item->id . ")" . $item->date }}

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

@if ($item->debit > 0)
{{ $item->debit_local }} {{ $system_currency->code }}
@endif @if($item->entry->currency_rate)
{{ $item->debit }} {{ $item->currency->code }}
@endif
@if ($item->credit > 0)
{{ $item->credit_local .' ' . $system_currency->code}}
@endif @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
@endsection @section('js') @endsection