@extends('layouts.app')
@section('title', __('nav.payments'))
@section('content')
<h1 class="h4 mb-3">{{ __('nav.payments') }}</h1>
<div class="card"><table class="table mb-0"><thead><tr><th>#</th><th>{{ __('messages.customer') }}</th><th>{{ __('messages.amount') }}</th><th>{{ __('messages.payment_method') }}</th><th>{{ __('messages.date') }}</th></tr></thead>
<tbody>@forelse($payments as $p)<tr><td><a href="{{ route('payments.show',$p) }}">{{ $p->payment_number }}</a></td><td>{{ $p->customer?->name }}</td><td>{{ money($p->amount) }}</td><td>{{ $p->payment_method->label() }}</td><td>{{ $p->date?->toDateString() }}</td></tr>@empty<tr><td colspan="5">{{ __('messages.no_results') }}</td></tr>@endforelse</tbody></table>
@include('partials.pagination', ['paginator' => $payments])
</div>
@endsection
