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

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

{{translate('messages.export')}}
@foreach($account_transaction as $k=>$at) @endforeach
{{ translate('messages.sl') }} {{ translate('messages.received_from') }} {{ translate('messages.type') }} {{translate('messages.received_at')}} {{translate('messages.amount')}} {{translate('messages.reference')}} {{translate('messages.action')}}
{{$k+$account_transaction->firstItem()}} @if($at->restaurant) {{ Str::limit($at->restaurant->name, 20, '...') }} @elseif($at->deliveryman) {{ $at->deliveryman->f_name }} {{ $at->deliveryman->l_name }} @else {{translate('messages.not_found')}} @endif {{$at->created_at->format('Y-m-d '.config('timeformat'))}} {{$at['amount']}} {{$at['ref']}}
@if(count($account_transaction) === 0)
public
{{translate('no_data_found')}}
@endif
@endsection @push('script_2') @endpush