@extends('backend.partials.master') @section('title') {{ __('account.title') }} {{ __('levels.list') }} @endsection @section('maincontent')
@csrf
@error('holder_name') {{ $message }} @enderror
@error('account_no') {{ $message }} @enderror
* @error('bank') {{ $message }} @enderror
{{ __('levels.clear') }}

{{ __('account.title') }}

@if(hasPermission('account_create') == true )
@endif
@if(hasPermission('account_update') == true || hasPermission('account_delete') == true ) @endif @php $i=1; @endphp @foreach($accounts as $account) @if(hasPermission('account_update') == true || hasPermission('account_delete') == true ) @endif @endforeach
{{ __('levels.id') }} {{ __('levels.gateway') }} {{ __('levels.account_info') }} {{ __('levels.status') }}{{ __('levels.actions') }}
{{$i++}} @if($account->gateway == 1) Cash @elseif($account->gateway == 2) Bank @elseif($account->gateway == 3) bKash @elseif($account->gateway == 4) Rocket @elseif($account->gateway == 5) Nagad @endif @if($account->user)
user
: {{@$account->user->name}}

: {{@$account->user->email}}


@endif @if($account->account_holder_name != null)
Holder Name
: {{$account->account_holder_name}}
@endif @if($account->account_no != null)
Account No.
: {{$account->account_no}}
@endif @if($account->bank != null)
Bank Name
: @if($account->bank == 1) BB
@elseif($account->bank == 2) DBBL
@elseif($account->bank == 3) IB
@endif
@endif @if($account->branch_name != null)
Branch Name
: {{$account->branch_name}}
@endif @if($account->mobile != null)
Mobile
: {{$account->mobile}}
@endif @if($account->account_type != null)
Account Type
: {{$account->account_type == 1 ? 'Merchant' : 'Personal'}}
@endif @if($account->opening_balance != null)
Opening Balance
: {{settings()->currency}}{{$account->opening_balance}}
@endif @if($account->balance != null)
Current Balance
: {{settings()->currency}}{{$account->balance}}
@endif
{!! $account->my_status !!}
{{ $accounts->links() }}

{!! __('Showing') !!} {{ $accounts->firstItem() }} {!! __('to') !!} {{ $accounts->lastItem() }} {!! __('of') !!} {{ $accounts->total() }} {!! __('results') !!}

@endsection()