@extends('layouts.master') @section('title', 'Supervisor History') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.sidebar') @include('layouts.header-sub')
@yield('title')

@if ($orders->count() == 0)
No history found
@else
@foreach ($orders as $i => $order) @endforeach
No. Order Code Customer Request Date Total Status Approved Date
{{ $orders->firstItem() + $i }} {{ $order->order_code }} {{ $order->order_customer_name }} {{ $order->order_request_date ? \Carbon\Carbon::parse($order->order_request_date)->format('d M Y') : '-' }} {{ number_format($order->order_total_price, 2) }} @if ($order->order_status_for_supervisor == 'approved') Approved @else Rejected @endif {{ $order->order_supervisor_approved_date ? \Carbon\Carbon::parse($order->order_supervisor_approved_date)->format('d M Y H:i') : '-' }}
{{ $orders->links() }}
@endif
@include('layouts.footer') @endsection