@extends('layouts.app') @section('content')

Security Cheque Tracker

Monitor all guarantee and security cheques issued by your companies.

+ New Security Cheque
@if($cheques->where('is_security_cheque', true)->count() === 0)

No security cheques found.

Security cheques are guarantee cheques that may not have fixed dates or amounts.

@else
@foreach($cheques->where('is_security_cheque', true) as $cheque) @php $statusColor = match($cheque->status) { 'cleared' => '#10B981', 'issued', 'released' => '#3B82F6', 'in_hand' => '#F59E0B', 'cancelled', 'bounced' => '#EF4444', default => '#6B7280' }; @endphp @endforeach
Chq # Company Payee Bank Date Amount (AED) Status Actions
{{ $cheque->cheque_number }} {{ $cheque->company->name ?? 'N/A' }} {{ $cheque->payee->name }} {{ $cheque->bank->name }} @if($cheque->cheque_date) {{ $cheque->cheque_date->format('d M Y') }} @else Open Date @endif @if($cheque->amount) {{ number_format($cheque->amount, 2) }} @else Open Amount @endif {{ ucfirst(str_replace('_', ' ', $cheque->status)) }}
@endif
@endsection