@extends('admin.layout.master') @section('title','CAKE ORDER LIST') @section('custom_style') @endsection @section ('content')

CAKE ORDER LIST

{{-- --}} {{--
--}}
{{--
--}}
{{--
--}} {{--
--}}
@csrf @php $p=1; @endphp @forelse ($orders as $i=>$item) @empty @endforelse
# Date ORDER NO ShowRoom Status Action
{{ ($p++) }} {{ date('d-M-Y h:i A',strtotime($item->created_at)) }} {{ $item->order_no }} {{ $item->showroom?$item->showroom->name_eng:'N\A' }} {{ ($item->delivery_status==2?'DELIVERED':($item->delivery_status==0?'PENDING':'REJECTED')) }} {{-- --}} @if(checkAuthPermission('order.cake_print')) @endif {{-- --}} @if(checkAuthPermission('order.cake_edit')) Edit @endif @if ($item->delivery_status == 0 && get_guard()=='admin') @if(checkAuthPermission('delivery.add')) Deliver @endif @elseif ($item->delivery_status == 1 && get_guard()=='admin') @endif
@include('inventory.order.detail_modal') @endsection @section('script') @stop