@include('./util/header')

CLI Certified Practitioners' Resource Center: Orders

@if($errors->any())
@endif @if(session('success'))
@endif

Unpaid Orders

@php @endphp @foreach($orders as $order) @php $datePaid = $order->datePaid; $dateCancelled = $order->dateCancelled; $isUnpaid = is_null($datePaid) || empty($datePaid) || $datePaid === '0000-00-00' || $datePaid === '0000-00-00 00:00:00' || trim($datePaid) === ''; $isCancelled = !is_null($dateCancelled) && !empty($dateCancelled) && $dateCancelled !== '0000-00-00' && $dateCancelled !== '0000-00-00 00:00:00' && trim($dateCancelled) !== ''; if ($isUnpaid && !$isCancelled) { @endphp @php } @endphp @endforeach
Order # Date Group Total Payment Status Action
#{{ $order->orderID }} {{ $order->dateAdded }} {{ $order->groupName }} {{ $order->subTotal }} Not paid Info
@csrf

Paid Orders

@foreach($orders as $order) @php $datePaid = $order->datePaid; $isPaid = !is_null($datePaid) && !empty($datePaid) && $datePaid !== '0000-00-00' && $datePaid !== '0000-00-00 00:00:00' && trim($datePaid) !== ''; if ($isPaid) { @endphp @php } @endphp @endforeach
Order # Date Group Total Payment Status Action
#{{ $order->orderID }} {{ $order->dateAdded }} {{ $order->groupName }} {{ $order->subTotal }} Paid Info
Paid on {{ \Carbon\Carbon::parse($datePaid)->format('M d, Y') }}

Cancelled Orders

@foreach($orders as $order) @php $dateCancelled = $order->dateCancelled; $isCancelled = !is_null($dateCancelled) && !empty($dateCancelled) && $dateCancelled !== '0000-00-00' && $dateCancelled !== '0000-00-00 00:00:00' && trim($dateCancelled) !== ''; if ($isCancelled) { @endphp @php } @endphp @endforeach
Order # Date Group Total Payment Status Action
#{{ $order->orderID }} {{ $order->dateAdded }} {{ $order->groupName }} {{ $order->subTotal }} Cancelled Info
Cancelled on {{ \Carbon\Carbon::parse($dateCancelled)->format('M d, Y') }}
@include('./util/footer')