{{ $pageTitle }}
@if( $type == 'detail' )
profile-pic

{{ optional($data)->name }}

@php $status = 'warning'; $status_name = 'inactive'; switch ($data->status) { case 0: $status = 'warning'; $status_name = __('message.inactive'); break; case 1: $status = 'success'; $status_name = __('message.active'); break; } @endphp {{$status_name}}

{{ auth()->user()->hasRole('admin') ? maskSensitiveInfo('email',optional($data)->email) : maskSensitiveInfo('email',optional($data)->email) }}

{{ auth()->user()->hasRole('admin') ? maskSensitiveInfo('contact_number',optional($data)->contact_number) : maskSensitiveInfo('contact_number',optional($data)->contact_number) }}

{{ auth()->user()->hasRole('admin') ? optional($data->city)->name : maskSensitiveInfo('city',optional($data->city)->name) }}

,

{{ auth()->user()->hasRole('admin') ? optional($data->country)->name : maskSensitiveInfo('country',optional($data->country)->name) }}

{{ __('message.app_version') . ' : ' . (auth()->user()->hasRole('admin') ? ($data->app_version ? : '0') : '0')}}

{{ __('message.app_source') . ' : ' . (auth()->user()->hasRole('admin') ? ($data->app_source ? : 'N/A') : 'N/A')}}

{{ __('message.last_active') . ' : ' . (auth()->user()->hasRole('admin') ? (dateAgoFormate($data->last_actived_at) ? : 'N/A') : 'N/A')}}

{{ __('message.verification_detail')}}


{{ __('message.type') }} {{ __('message.is_auto_verified') }} {{ __('message.verified_date') }} {{ __('message.action') }}
{{__('message.email')}} {{ ($user->is_autoverified_email == 1 ? 'yes' :'no') }} {{ dateAgoFormate($user->email_verified_at) }} @if($user->email_verified_at !=null) @else {{'-'}} @endif
{{__('message.mobile')}} {{ ($user->is_autoverified_mobile == 1 ? 'yes' :'no') }} {{ dateAgoFormate($user->otp_verify_at) }} @if($user->otp_verify_at !=null) @else {{'-'}} @endif

{{ __('message.bank_details')}}


@foreach ($bank_detail as $value)
{!! html()->label(__('message.bank_name'))->class('form-control-label text-secondary ml-2') !!}
{{ optional($value)->bank_name }}
{!! html()->label(__('message.bank_account_holder_name'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->account_holder_name }}
{!! html()->label(__('message.account_number'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->account_number }}
{!! html()->label(__('message.bank_ifsc_code'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->bank_code }}

{!! html()->label(__('message.bank_address'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->bank_address }}
{!! html()->label(__('message.routing_number'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->routing_number }}
{!! html()->label(__('message.bank_iban'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->bank_iban }}
{!! html()->label(__('message.bank_swift'))->class('form-control-label text-secondary ml-2') !!}
{{optional($value)->bank_swift }}

@endforeach
@endif @if( $type == 'wallethistory' )

{{ __('message.wallet_total_balance') }}

{{ getPriceFormat($earning_detail->user_wallet_sum_total_amount) }}

{{ __('message.add_form_title', [ 'form' => __('message.wallet') ]) }}

{!! html()->form('POST', route('savewallet-save', $data->id))->open() !!}
{!! html()->label(__('message.type') . ' *')->class('form-control-label') !!} {!! html()->select('type', ['credit' => __('message.credit'),'debit' => __('message.debit')], old('type'))->class('form-control select2js')->required() !!}
{!! html()->label(__('message.amount') . ' *')->class('form-control-label') !!} {!! html()->number('amount', old('amount'))->class('form-control')->attribute('min', 0)->attribute('step', 'any')->required()->placeholder(__('message.amount')) !!}
{!! html()->button(__('message.save'))->class('btn btn-md btn-primary float-right')->type('submit') !!} {!! html()->form()->close() !!}

{{ __('message.wallethistory')}}

@if(count($wallet_history) > 0) @foreach ( $wallet_history as $value) @php $key = str_replace('_', ' ', ucwords($value->transaction_type ?? '-', '_')); @endphp @endforeach @else @endif
{{ __('message.order_id') }} {{ __('message.transaction_type') }} {{ __('message.amount') }} {{ __('message.date') }}
{{ optional($value)->order_id }}{{$key}} {{ getPriceFormat($value->amount) ?? '-' }} {{ dateAgoFormate($value->created_at) ?? '-' }}
{{ __('message.no_record_found') }}
@endif @if( $type == 'orderhistory' )
@if($order->count() > 0) @foreach ( $order as $orders ) @php $status = 'primary'; $order_status = $orders->status; switch ($order_status) { case 'draft': $status = 'light'; $status_name = __('message.draft'); break; case 'create': $status = 'primary'; $status_name = __('message.create'); break; case 'completed': $status = 'success'; $status_name = __('message.completed'); break; case 'courier_assigned': $status = 'warning'; $status_name = __('message.courier_assigned'); break; case 'active': $status = 'info'; $status_name = __('message.active'); break; case 'courier_departed': $status = 'info'; $status_name = __('message.courier_departed'); break; case 'courier_picked_up': $status = 'warning'; $status_name = __('message.pickup'); break; case 'courier_arrived': $status = 'warning'; $status_name = __('message.arrived'); break; case 'cancellled': $status = 'danger'; $status_name = __('message.cancellled'); break; case 'delayed': $status = 'secondary'; $status_name = __('message.delayed'); break; case 'failed': $status = 'danger'; $status_name = __('message.failed'); break; } @endphp @endforeach @else @endif
{{ __('message.order_id') }} {{ __('message.pickup_address') }} {{ __('message.delivery_address') }} {{ __('message.delivery_man') }} {{ __('message.pickup_date') }} {{ __('message.delivery_date') }} {{ __('message.invoice') }} {{ __('message.created_at') }} {{ __('message.status') }} {{ __('message.is_return') }} {{ __('message.assign') }} {{ __('message.action') }}
{{ optional($orders)->id }} - - {{ optional($orders->delivery_man)->name ?? '-' }} {{ dateAgoFormate($orders->pickup_datetime) ?? '-' }} {{ dateAgoFormate($orders->delivery_datetime) ?? '-' }} @if(optional($orders)->status == 'completed') @else N/A @endif {{ dateAgoFormate($orders->created_at) ?? '-' }} {{ __('message.'.$order_status) }} @php $parentOrderIds = $orders->pluck('parent_order_id')->toArray(); @endphp @if (in_array($orders->id, $parentOrderIds)) @else {{'-'}} @endif @if($orders->deleted_at) {{ __('message.order_deleted') }} @elseif($orders->status === 'cancelled') {{ __('message.order_cancelled') }} @elseif($orders->status === 'draft') {{ __('message.order_draft') }} @elseif($orders->status === 'completed') {{ __('message.order_completed') }} @elseif($orders->delivery_man_id === null) {{ __('message.assign') }} @else {{ __('message.transfer') }} @endif
{!! html()->form('DELETE', route('order.destroy', $orders->id))->attribute('data--submit', 'order' . $orders->id)->open() !!} {!! html()->form()->close() !!} @if( auth()->user()->hasRole('admin') && $orders->status != 'draft' ) @endif
{{ __('message.no_record_found') }}
@endif @if ($type == 'withdrawrequest')
@if($withdraw->count() > 0) @php $counter = 1; @endphp @foreach($withdraw as $value) @php $counter++; @endphp @endforeach @else @endif
{{ __('message.no') }} {{ __('message.amount') }} {{ __('message.available_balnce') }} {{ __('message.request_at') }} {{ __('message.action_at') }} {{ __('message.bank_details') }} {{ __('message.status') }} {{ __('message.action') }}
{{ $counter }} {{ getPriceFormat($value->amount) ?? 0 }} {{ $value->status == 'requested' ? ($wallte ? getPriceFormat($wallte->total_amount) : 0) : '-' }} {{ dateAgoFormate($value->created_at) ?? '-' }} {{ dateAgoFormate($value->updated_at) ?? '-' }} @php $status = 'danger'; $status_name = 'requested'; switch ($value->status) { case 'requested': $status = 'indigo'; $status_name = __('message.pending'); break; case 'decline': $status = 'danger'; $status_name = __('message.declined'); break; case 'approved': $status = 'success'; $status_name = __('message.approved'); break; } @endphp {{$status_name ?? ''}} @if($value->status == 'requested') @else {{'-'}} @endif
{{ __('message.no_record_found') }}
@endif @if($type == 'useraddress')
@foreach($userAddresses as $item)
{{ $item->address }}
{{ auth()->user()->hasRole('admin') ? maskSensitiveInfo('contact_number',optional($item)->contact_number) : maskSensitiveInfo('contact_number',optional($item)->contact_number) }}
@endforeach
@endif @if($type == 'claimsinfo')
@foreach ( $claims as $value ) @php $status = 'primary'; $status_name = 'pending'; switch ($value->status) { case 'pending': $status = 'primary'; $status_name = __('message.pending'); break; case 'approved': $status = 'success'; $status_name = __('message.approved'); break; case 'reject': $status = 'warning'; $status_name = __('message.reject'); break; case 'close': $status = 'danger'; $status_name = __('message.close'); break; } @endphp @php $shortText = strlen($value->prof_value) > 30 ? substr($value->prof_value, 0, 30) . '...' : $value->prof_value; @endphp @php $shortdetails = strlen($value->detail) > 30 ? substr($value->detail, 0, 30) . '...' : $value->detail; @endphp @endforeach
{{ __('message.id') }} {{ __('message.traking_no') }} {{ __('message.prof_value') }} {{ __('message.detail') }} {{ __('message.status') }} {{ __('message.action') }}
{{ $value->id ?? '-'}} {{ $value->traking_no ?? '-' }} {{ $shortText ?? '-' }} {{ $shortdetails ?? '-' }} {{ $status_name }}
@endif @if( $type == 'rating' )
{{ $dataTable->table(['class' => 'table w-100'],false) }}
@endif
@section('bottom_script') {{ in_array($type,['rating']) ? $dataTable->scripts() : '' }} @endsection