@extends('cfp.layouts.master') @section('content')

{{ __("cfp.Event") }} VOUCHERS

@include('cfp.components.error_alert')
@forelse ($vouchers as $voucher) @if ($voucher->ACTIVE_YN == 'N' && $user_data->AUTHORITY_LEV < 3) @continue @endif @empty @endforelse
# {{ __("cfp.NewVoucher") }} {{ __("cfp.Type") }} {{ __("cfp.Item") }} {{ __("cfp.Amount") }} {{ __("cfp.Missing") }} {{ __("cfp.Creator") }} {{ __("cfp.Start") }} {{ __("cfp.Finish") }} {{ __("cfp.Actions") }}
{{ $voucher->SRL }} @if ($voucher->ACTIVE_YN == 'Y') {{ $voucher->CODE }} @else {{ __("cfp.CodeDescInactive1") }} {{ __("cfp.Inactive") }}. @endif {{ $voucher->DELIVER_TYPE == 0 ? "Item" : "ZP" }} @if (isset($voucher->item->SHORT_NAME) && $voucher->DELIVER_TYPE == 0) item->SHORT_NAME }}"> {{ $voucher->item->SHORT_NAME ?? "Item inválido" }} @else {{ number_format($voucher->DELIVER_ID) }} ZP @endif {{ $voucher->USE_CNT }} {{ $voucher->USE_LEFT_CNT }} {{ $voucher->creator->NICK ?? "N/A" }} {{ Helper::date_stringFormat($voucher->REG_DATE, false) }} @if (is_null($voucher->EXPIRE_DATE)) {{ __("cfp.Never") }} @else {{ Helper::date_stringFormat($voucher->EXPIRE_DATE, false) }} @endif
{{ __("cfp.NoCodeCreated") }}, {{ __("cfp.NoCodeCreated1") }}
{{ $vouchers->links() }}
@endsection