@extends('layouts.main') @section('page-style') @endsection @section('page-plugin') @endsection @section('page-script') @endsection @section('content')

@include('transaction::transaction.transaction_filter')
@include('layouts.notifications') @if (!empty($search))

Displaying search result :

@if(isset($trxTotal))

{{ $trxTotal }} data


@else

0 data


@endif Reset
@endif
List Transaction {{ strtolower($key) == 'all' ? '' : $key }}
@if(isset($trx) && !empty($trx)) Export Export Detail @endif
@if(strtolower($key) == 'delivery') @endif @if(!empty($trx)) @foreach($trx as $res) @if (isset($res['name'])) @else @endif @if (isset($res['phone'])) @else @endif @if(strtolower($key) == 'delivery') @php $bg = 'default'; switch(strtolower($res['latest_status'])){ case 'finding driver': case 'driver found': $bg = 'yellow-crusta'; break; case 'enroute pickup': case 'item picked by driver': $bg = 'yellow-gold'; break; case 'enroute drop': $bg = 'green-jungle'; break; case 'completed': $bg = 'blue-sharp'; break; case 'driver not found': case 'rejected': case 'cancelled': $bg = 'red'; break; } @endphp @endif @endforeach @endif
Actions Date Outlet Transaction Type Receipt Number Customer Name Phone Total Price Payment Status Transaction StatusShipment Status
Detail {{-- Delete --}} {{ date('d M Y H:i:s', strtotime($res['transaction_date'])) }} {{ $res['outlet_code'] }} - {{ $res['outlet_name'] }} {{$res['pickup_by'] == 'Customer' ? 'Pickup Order':'Delivery'}} {{ $res['transaction_receipt_number'] }}{{ $res['name'] }}{{ $res['user']['name'] }}{{ $res['phone'] }}{{ $res['user']['phone'] }}Rp {{ number_format($res['transaction_grandtotal'], 2) }} @if($res['transaction_payment_status'] == 'Completed') Completed @elseif($res['transaction_payment_status'] == 'Pending') Pending @elseif($res['transaction_payment_status'] == 'Cancelled') Cancelled @endif @if(!empty($res['reject_at'])) Reject : {{$res['reject_reason']}} @elseif(!empty($res['taken_by_system_at'])) Taken by System @elseif(!empty($res['taken_at']) && $res['pickup_by'] == 'Customer') Taken by Customer @elseif(!empty($res['taken_at']) && $res['pickup_by'] != 'Customer') Taken by Driver @elseif(!empty($res['ready_at']) && empty($res['taken_at'])) Ready @elseif(!empty($res['receive_at']) && empty($res['ready_at'])) Received @elseif(empty($res['receive_at'])) Pending @endif {{$res['latest_status']??''}}
@if(isset($trxPerPage) && isset($trxUpTo) && isset($trxTotal)) Showing {{$trxPerPage}} to {{$trxUpTo}} of {{ $trxTotal }} entries
@endif @if ($trxPaginator) {{ $trxPaginator->links() }} @endif
@endsection