@extends('layouts.layout') @section('content')
{{-- --}}
@foreach ($intakes as $intake) @endforeach
Intake Id Customer Name Amount Intake Status Created Date Options
Intake #{{ $intake->id }} {{ $intake->customer_name }} ${{ number_format($intake->price, 2) }} @if ($intake->status == 'approved') {{ $intake->paymentEmails->count() }} @endif {{ isset($intake->intake_date) ? date('M d, Y', strtotime($intake->intake_date)) : 'N/A' }} {{-- Edit Icon --}} @php $status = $intake->status; @endphp @php $isApproved = $intake->status == 'approved'; @endphp {{-- Send for Approval --}} @if ($status === 'pending') @endif {{-- Final Payment Link --}} @if ($status === 'approved') @endif {{-- Ship Order --}} @if ($status === 'ready_to_ship') @endif {{-- Delivered (Optional visual) --}} @if ($status === 'completed') @endif
Showing {{ $intakes->firstItem() }} to {{ $intakes->lastItem() }} of total {{ $intakes->total() }} entries

{{ $intakes->appends(request()->query())->links() }}

@push('scripts') @endpush @endsection