@lang('dashboard_sidebar.home')

@include('dashboard.components.errors') @if(session()->has('message'))

{{ session()->get('message') }}

@endif
@isset($currentBank) @lang('dashboard_banks.back')

{{$currentBank->name}}

@endisset

@lang('dashboard_banks.new_bank')

@csrf

@lang('dashboard_banks.add_bank_transfer')

@csrf

@lang('dashboard_banks.Pay_Credit_Account')

@csrf
@php $count = count($parents->slice(0,6)); if(Route::currentRouteName() == 'dashboard.banks.all.banks'){ $count = count($parents); } @endphp @for($i=0 ; $i < $count;$i++) {{-- {{ dd($parents->slice(0,6)) }} --}}
{{ $parents[$i]->name }}
@if ($parents[$i]->canDelete == true)
@csrf
@endif

@lang('dashboard_banks.edit_bank')

@csrf @method('PUT')

{{ $parents[$i]->balance }}$

@lang('dashboard_banks.under') {{ $parents[$i]->branch->count() }} @lang('dashboard_banks.accounts')

@endfor @if(count($parents->slice(0,6))%2 !==0) @endif
{{--
--}} @if(Route::currentRouteName() != 'dashboard.banks.all.banks')
@lang('dashboard_banks.all_banks')
@endif {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- {{ $errors }} --}} @if(Route::currentRouteName() != 'dashboard.banks.all.banks')

@lang('dashboard_banks.last_operations')

@lang('dashboard_banks.report_last_operations') .

@forelse ($moves as $index=> $move) parent==0 && $move->deleted_at != null) style="background-color:#ffc9c7; color: #666" @endif> @empty @endforelse
@lang('dashboard_banks.from_to') @lang('dashboard_banks.date') @lang('dashboard_banks.operation_description') @lang('dashboard_banks.bank') @lang('dashboard_sidebar.taxes') @lang('dashboard_banks.account') @lang('dashboard_banks.spent') @lang('dashboard_banks.received') @lang('buttons.process')
@if($move->moveable!= null){{ $move->type() }}@endif {{ optional($move->moveable)->company_name }} {{ $move->date }}

{{ substr($move->description ,0,50) }}

@if(strlen($move->description) > 0) @else @endif
{{ $move->bank->name }} @if($move->tax){{ optional($move->tax)->name .' (' . optional($move->tax)->percentage .')'}}@endif {{@$move->account->name}} @if($move->amount_type =='spent') {{ $move->amount }}$@endif @if($move->amount_type =='received') {{ $move->amount }}$@endif
@if(!$move->isAdded && $move->deleted_at == null) @else @if ($move->isAdded==false && $move->deleted_at != null)
@elseif ($move->isAdded==true && $move->deleted_at != null)

@lang('dashboard_banks.delete_operation')

@csrf

@lang('dashboard_banks.confirm_delete')

@else @if ($move->type != 'split') @endif @endif @endif {{-- start of cmpare --}}

@lang('dashboard_banks.match_operation')

@lang('dashboard_banks.payment_from') @lang('dashboard_banks.bank'){{ $move->bank->name }} .@lang('dashboard_banks.on') {{ $move->date }}

{{ $move->amount }}

@csrf @method('PUT')
{{-- end of compare --}} {{-- start of splite --}}

@lang('dashboard_banks.split_procedure')

@lang('dashboard_banks.payment_from') {{ $move->bank->name }} @lang('dashboard_banks.bank'). @lang('dashboard_banks.on') {{ $move->date }}

{{ $move->amount }}

@csrf @method('PUT')
{{--
--}}
@lang('dashboard_banks.split') @lang('dashboard_banks.amount')

0

@lang('dashboard_banks.original') @lang('dashboard_banks.amount')

{{ $move->amount }}

@lang('dashboard_banks.difference') @lang('dashboard_banks.amount')

{{ $move->amount }}

{{--
--}}

@lang('dashboard_banks.operation_procedure')

@csrf @method('PUT')

@lang('dashboard_banks.delete_operation')

@csrf

@lang('dashboard_banks.confirm_delete')

@lang('dashboard_banks.delete_operation')

@csrf

@lang('dashboard_banks.confirm_delete')

@lang('dashboard_banks.operation_description')

{{ $move->description }}

@if($move->file)

@lang('dashboard_banks.file')

{{ $move->file->path }}

{{--
--}} @lang('buttons.download')
@endif
@lang('dashboard_banks.no_data_found')
@if($moves->links())
{{ $moves->links() }}
@endif
@endif
{{-- @include("dashboard.components.footer"); --}} @endsection @section('custom_script') @endsection