@extends('layouts.master') @section('title', trans('messages.promissory_notes')) @section('content') @php $isRTL = app()->getLocale() === 'ar'; @endphp
| {{ trans('messages.note_number') }} | {{ trans('messages.type') }} | {{ trans('messages.name') }} | {{ trans('messages.amount') }} | {{ trans('messages.issue_date') }} | {{ trans('messages.due_date') }} | {{ trans('messages.status') }} | {{ trans('messages.actions') }} |
|---|---|---|---|---|---|---|---|
| {{ $note->note_number }} | {{ $note->type === 'customer' ? trans('messages.customers') : trans('messages.suppliers') }} | @if($note->type === 'customer') {{ $note->customer->name ?? 'N/A' }} @else {{ $note->supplier->name ?? 'N/A' }} @endif | {{ format_currency($note->amount) }} | {{ $note->issue_date->format('Y-m-d') }} | {{ $note->due_date->format('Y-m-d') }} | @php $badgeClass = match($note->status) { 'paid' => 'success', 'due' => 'warning', 'cancelled' => 'secondary', default => 'info' }; @endphp {{ trans('messages.' . $note->status) }} | @if(!$note->isPaid()) @endif @if(!$note->isPaid()) @endif |
| {{ trans('messages.no_promissory_notes_found') }} | |||||||