@extends('admin.layouts.profile') @section('page-title') الملف المالي للمندوب @endsection @push('main-drivers-active') m-menu__item--active @endpush @section('profile-picture'){{ URL::asset('/' . $driver->image) }}@endsection @section('user-name') {{ $driver['name'] }} @endsection @section('user-email') {{ $driver['phone'] }} @endsection @section('profile-item') @endsection @section('profile-title') عرض الملف المالي @endsection @section('profile-content')

@if (session('Done')) @endif @if (session('ERROR')) @endif @if ($errors->any()) @endif
@foreach($transactions as $transaction) @endforeach
# المبلغ السبب تاريخ العملية الملاحظات
{{ $loop->index +1 }} {{ ($transaction['amount'] > 0)? $transaction['amount'] : ('(' . abs($transaction['amount']) . ')') }} {{ __('api.driver_wallet_reasons.' . $transaction['reason']) }} {{ $transaction['created_at']->format('Y-m-d') }} {{ $transaction['notes']?: '-' }}
اجمالي الحساب {{ $transactions->sum('amount') }} ريال
@csrf {{ method_field('PUT') }}
@if ($errors->has('payment_type')) {{ $errors->first('payment_type') }} @endif
ريال سعودي
@if ($errors->has('amount')) {{ $errors->first('amount') }} @endif
@if ($errors->has('reason')) {{ $errors->first('reason') }} @endif
@if ($errors->has('voucher_no')) {{ $errors->first('voucher_no') }} @endif
@if ($errors->has('payment_date')) {{ $errors->first('payment_date') }} @endif
@if ($errors->has('notes')) {{ $errors->first('notes') }} @endif
@if ($errors->has('is_paid')) {{ $errors->first('is_paid') }} @endif
@endsection @push('page_level_style') @endpush @push('page_level_script') @endpush