@extends('admin.layout') @section('content')
Manage Uber and Lyft vouchers for holidays
{{ session('success') }}
Showing {{ $vouchers->count() }} voucher(s)
| Code | Type | Claimed By | Holiday | Claimed At | Actions |
|---|---|---|---|---|---|
|
|
{{ ucfirst($voucher->type) }} |
@if($voucher->claimed_by)
{{ strtoupper(substr($voucher->user ? ($voucher->user->first_name ?? $voucher->user->email) : 'U', 0, 1)) }}
{{ $voucher->user ? $voucher->user->name : 'User #' . $voucher->claimed_by }}
|
@if($voucher->holiday)
@if($voucher->holiday->emoji)
{{ $voucher->holiday->emoji }}
@endif
@else
-
@endif
{{ $voucher->holiday->title }}
{{ \Carbon\Carbon::parse($voucher->holiday->start_date)->format('M d, Y') }}
|
{{ $voucher->claimed_at ? $voucher->claimed_at->format('M d, Y') : '-' }} @if($voucher->claimed_at) {{ $voucher->claimed_at->format('H:i') }} @endif | |
|
No vouchers found Import vouchers or create one manually to get started |
|||||