@extends('layouts.partials.master') @section('title', 'Vouchers') @push('styles') @endpush @section('content') @include('layouts.components.section-title', ['title' => 'Vouchers']) {{-- filters --}}
@include('layouts.components.alerts')
@if ($vouchers instanceof \Illuminate\Pagination\LengthAwarePaginator) Ver todos @else Paginar @endif
@include('layouts.components.per-page', ['subject' => $vouchers, 'route' => 'mkt_vouchers'])
@forelse($vouchers as $voucher) @empty @endforelse
ID Utilizador Serviço Código Status Emitido Expiração Ações
{{ $voucher->id }} @if ($voucher->userDetails && !$voucher->userDetails->trashed()) {{ $voucher->user->full_name }} @elseif($voucher->userDetails) {{ $voucher->user->full_name }} (excluído) @endif {{ $voucher->service->name }} {{ $voucher->code }} @include('layouts.components.status', ['status' => $voucher->status]) {{ $voucher->created_at ?? '' }} {{ $voucher->expires_at ?? '' }}

{{ __('translations.no_results') }}

@include('layouts.components.pagination', ['subject' => $vouchers]) @endsection