@extends('crm.master') @section('title', 'Discounts') @section('content')

Discounts

Manage discount codes and promotions

Add Discount
@include('crm.components.alerts')
@forelse($discounts as $key => $discount) @empty @endforelse
# Name Amount Applies To Code Validity Status Actions
{{ $discounts->firstItem() + $key }} {{ $discount->name }} @if($discount->adjustment_type === 'percent') {{ number_format($discount->amount, 2) }}% @else ${{ number_format($discount->amount, 2) }} @endif @php $labels = [ 'per_product' => 'Per Product', 'per_booking' => 'Per Booking', 'per_qty' => 'Per Qty', ]; @endphp {{ $labels[$discount->applies_to] ?? $discount->applies_to }} @if($discount->code) {{ $discount->code }} @else @endif @if($discount->always_valid) Always Valid @else {{ $discount->start_date?->format('d M Y') }} – {{ $discount->end_date?->format('d M Y') }} @endif @if($discount->enabled) Enabled @else Disabled @endif
@csrf @method('PATCH')

No discounts found

Add First Discount
@if($discounts->hasPages()) @endif
@endsection