@extends('layout') @section('h4-page', __('Rider Payment')) @section('contents')
@if (session('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{--
{{ __('ExportExcel') }}
--}}
@forelse ($main as $key => $item)

{{ $item['rider']?->fullname() }}

@foreach ($item['task'] as $key2 => $detail) @endforeach
{{ __('OrderNo') }} {{ __('Type') }} {{ __('Amount / Bath') }} {{ __('Action') }}
{{ $detail?->order?->no }} {{ $detail?->type }} @if ($detail->type == 'RECEIVE') @php $json = json_decode($detail->order?->condition_service); if ($json) { echo number_format($json[0]?->price, 2); } @endphp @else @php $json = json_decode($detail->order?->condition_service); if ($json) { echo number_format($json[1]?->price, 2); } @endphp @endif @if ($detail->ref) {{ __('view') }} @endif
@empty

{{ __('NoDataFound') }}

@endforelse
@endsection @section('scripts') @endsection