@extends('layouts.admin.app') @section('title',translate('messages.Cash_Collection')) @push('css_or_js') @endpush @section('content')
@csrf

{{ translate('messages.transaction_table')}} {{$account_transaction->total()}}

@foreach($account_transaction as $k=>$at) @php($data= null) @endforeach
{{ translate('messages.sl') }} {{ translate('messages.Collected_From') }} {{ translate('messages.User_Type') }} {{translate('messages.Collected_At')}} {{translate('messages.Collected_Amount')}} {{translate('messages.Paymen_Method')}} {{translate('messages.Reference')}} {{translate('messages.action')}}
{{$k+$account_transaction->firstItem()}} @if($at->restaurant) @php($data=$at->restaurant) {{ Str::limit($data->name, 20, '...') }} @elseif($at->deliveryman) @php($data=$at->deliveryman) {{ $data->f_name }} {{ $data->l_name }} @else @php($data=null) {{translate('messages.not_found')}} @endif {{ \App\CentralLogics\Helpers::time_date_format($at->created_at) }} {{\App\CentralLogics\Helpers::format_currency($at['amount'])}} {{ translate($at['method']) }} {{ $at['ref'] ? translate($at['ref']) : translate('messages.N/A') }}
@if(count($account_transaction) === 0)
public
{{translate('messages.no_data_found')}}
@endif
{{-- Account Transaction Information --}} @endsection @push('script_2') @endpush