@extends('dashboard.layouts.app') @section('title', __('dashboard.General Discounts')) @section('page_heading', __('dashboard.General Discounts')) @section('breadcrumb') @endsection @section('content')

{{ __('dashboard.General Discounts') }} {{ $discounts->total() }} {{ trans_choice('dashboard.Discount|Discounts', $discounts->total()) }}

@if($discounts->isEmpty())
{{ __('dashboard.No discounts available') }}.
@else
{{-- Removed min-width --}} @foreach($discounts as $discount) @endforeach
{{ __('dashboard.ID') }} {{ __('dashboard.Name') }} {{ __('dashboard.Applies To') }} {{ __('dashboard.Discount Type') }} {{ __('dashboard.Discount Value') }} {{ __('dashboard.Max Uses') }} {{ __('dashboard.Start Date') }} {{ __('dashboard.End Date') }} {{ __('dashboard.Is Active') }} {{ __('dashboard.Actions') }}
{{ $discount->id }} {{ $discount->name }} @if($discount->applicability == 'all') {{ __('dashboard.All') }} @else @php $appliesTo = []; if (!empty($discount->track_filters)) { $appliesTo[] = __('dashboard.Tracks'); } if (!empty($discount->placement_test_filters)) { $appliesTo[] = __('dashboard.Placement Tests'); } if ($discount->applies_to_gift_calls) { $appliesTo[] = __('dashboard.Gift Calls'); } if ($discount->applies_to_discussion_groups) { $appliesTo[] = __('dashboard.Discussion Groups'); } @endphp {{ implode(', ', $appliesTo) ?: __('dashboard.N/A') }} @endif {{ $discount->discount_type == 'percentage' ? __('dashboard.Percentage') : __('dashboard.Fixed') }} {{ number_format($discount->discount_value, 2) }} {{ $discount->max_uses ?? __('dashboard.Unlimited') }} {{ $discount->start_date->format('Y-m-d H:i') }} {{ $discount->end_date->format('Y-m-d H:i') }} {{ $discount->is_active ? __('dashboard.Yes') : __('dashboard.No') }}
@csrf @method('DELETE')
{{ $discounts->links() }}
@endif
@endsection @push('styles') @endpush @section('scripts') @endsection