@extends('admin.layouts.app') @section('page-title') Voucher @endsection @section('content')
| Code | Discount | Valid From | Valid To | Status | Action |
|---|---|---|---|---|---|
| {{ $voucher->code }} | @if($voucher->discount_type == 'percentage') {{ number_format($voucher->discount_value, 0) }}% @else {{ number_format($voucher->discount_value, 2) }} € @endif | {{ $voucher->valid_from ? $voucher->valid_from->format('d M Y') : 'N/A' }} | {{ $voucher->valid_to ? $voucher->valid_to->format('d M Y') : 'N/A' }} | @if($voucher->status == 'active') Active @elseif($voucher->status == 'expired') Expired @else Inactive @endif |