@extends('admin.layouts.app') @push('style-push') @endpush @section('main_content')

{{ translate($title) }}

{{ translate('Delivery man Details') }}
{{ $deliveryman->image }}
{{ $deliveryman->name }}

{{ translate('Joining Date') }} {{ get_date_time($deliveryman->created_at, 'd M, Y h:i A') }}

{{ translate('deliveryman information') }}
  • {{ translate('Username') }} {{ $deliveryman->username }}
  • {{ translate('Phone') }} {{ $deliveryman->phone }}
  • {{ translate('Status') }} @if ($deliveryman->status == 1) {{ translate('Active') }} @else {{ translate('Inactive') }} @endif
  • {{ translate('Number Of Orders') }} {{ $deliveryman->orders_count }}
  • {{ translate('deliveryman Balance') }} {{ short_amount($deliveryman->balance) }}
{{ translate('Other Information') }}
@if(!request()->routeIs('admin.delivery-man.earning'))
{{ translate('Balance Information') }}

{{ short_amount($deliveryman->order_balance) }}

{{ translate('Order Balance') }}

{{ $deliveryman->orders_count }}

{{ translate('Total Order') }}

{{ translate('Withdraw Information') }}

{{ short_amount($overview['withdraw']['total_success_withdraw']) }}

{{ translate('Total Success Withdraw') }}

{{ short_amount($overview['withdraw']['total_pending_withdraw']) }}

{{ translate('Total Pending Withdraw') }}

{{ short_amount($overview['withdraw']['total_rejected_withdraw']) }}

{{ translate('Total Rejected Withdraw') }}

{{ translate('Latest Earning log') }}

@forelse($overview['earning_log'] as $earning) @empty @endforelse
{{ translate('Date') }} {{ translate('Order') }} {{ translate('Amount') }} {{ translate('Details') }}
{{ diff_for_humans($earning->created_at) }}
{{ get_date_time($earning->created_at) }}
@php $sellerId = $earning->order->orderDetails->contains(function ($orderDetail){ return $orderDetail->product->seller_id; }); $route = $sellerId ? 'admin.seller.order.details' : 'admin.inhouse.order.details'; @endphp {{ round($earning->amount) }} {{ default_currency()->name }} {{ $earning->details }}
@include('admin.partials.not_found')

{{ translate('Latest Withdraw Log') }}

@forelse($overview['withdraw']['log'] as $withdraw) @empty @endforelse
{{ translate('Time') }} {{ translate('Method') }} {{ translate('Amount') }} {{ translate('Charge') }} {{ translate('Receivable') }} {{ translate('Status') }} {{ translate('Action') }}
{{ diff_for_humans($withdraw->created_at) }}
{{ get_date_time($withdraw->created_at) }}
{{ @$withdraw->method ? $withdraw->method->name : translate('N/A') }} {{ round($withdraw->amount) }} {{ default_currency()->name }} {{ round($withdraw->charge) }} {{ default_currency()->name }} {{ round($withdraw->final_amount) }} {{ @$withdraw->currency->name }} @if ($withdraw->status == '1') {{ translate('Received') }} @elseif($withdraw->status == '2') {{ translate('Pending') }} @elseif($withdraw->status == '3') {{ translate('Rejected') }} @endif
@if ($withdraw->status == 2) @endif
@include('admin.partials.not_found')

{{ translate('Latest Transaction log') }}

@forelse($overview['transaction_log'] as $transaction) @empty @endforelse
{{ translate('Date') }} {{ translate('Transaction ID') }} {{ translate('Amount') }} {{ translate('Post Balance') }} {{ translate('Details') }}
{{ diff_for_humans($transaction->created_at) }}
{{ get_date_time($transaction->created_at) }}
{{ @$transaction->transaction_number }} {{ $transaction->transaction_type == '+' ? '+' : '-' }}{{ round($transaction->amount) }} {{ default_currency()->name }} {{ round($transaction->post_balance) }} {{ default_currency()->name }} {{ $transaction->details }}
@include('admin.partials.not_found')
{{translate('Review list')}}
@forelse($overview['customer_reviews'] as $review) @empty @endforelse
# {{translate("Customer name")}} {{translate("Order Id")}} {{translate('Rating')}} {{translate("Action")}}
{{$loop->iteration}} {{translate("Name")}}: {{@$review->user->name}}
{{translate('Email')}}: {{@$review->user->email ?? "N\A"}}
@php $sellerId = $review->order->orderDetails->contains(function ($orderDetail){ return $orderDetail->product->seller_id; }); $route = $sellerId ? 'admin.seller.order.details' : 'admin.inhouse.order.details'; @endphp {{round(@$review->rating)}}
@include('admin.partials.not_found')
{{$overview['customer_reviews']->appends(request()->all())->links()}}
@else

{{ translate('Earning logs') }}

@forelse($earningLogs as $earning) @empty @endforelse
{{ translate('Date') }} {{ translate('Order') }} {{ translate('Amount') }} {{ translate('Details') }}
{{ diff_for_humans($earning->created_at) }}
{{ get_date_time($earning->created_at) }}
@php $sellerId = $earning->order->orderDetails->contains(function ($orderDetail){ return $orderDetail->product->seller_id; }); $route = $sellerId ? 'admin.seller.order.details' : 'admin.inhouse.order.details'; @endphp {{ round($earning->amount) }} {{ default_currency()->name }} {{ $earning->details }}
@include('admin.partials.not_found')
@endif
@include('admin.modal.delete_modal') @endsection @push('script-push') @endpush