@extends('dashboard.layouts.app') @section('title', __('dashboard.Show Coupon')) @section('page_heading', __('dashboard.Show Coupon') . ': ' . $coupon->code) @section('breadcrumb') @endsection @section('actions') {{ __('dashboard.Edit Coupon') }}
@csrf @method('DELETE')
@endsection @section('content')

{{ __('dashboard.Coupon Details') }}

{{ $coupon->code }}

{{ $coupon->user ? $coupon->user->name : __('dashboard.N/A') }}

{{ $coupon->discount_type == 'percentage' ? __('dashboard.Percentage') : __('dashboard.Fixed') }}

{{ $coupon->discount_value }}

{{ $coupon->commission_percentage ?? '0' }}%

{{ $coupon->max_uses_per_user ?? __('dashboard.Unlimited') }}

{{ $coupon->max_uses ?? __('dashboard.Unlimited') }}

{{ $coupon->start_date->format('Y-m-d H:i') }}

{{ $coupon->end_date->format('Y-m-d H:i') }}

{{ $coupon->is_active ? __('dashboard.Yes') : __('dashboard.No') }}

{{ $coupon->first_order_only ? __('dashboard.Yes') : __('dashboard.No') }}

@if($coupon->description)

{{ $coupon->description }}

@endif
{{ __('dashboard.Applicability') }}

{{ $coupon->applicability == 'all' ? __('dashboard.All') : __('dashboard.Specific') }}

@if($coupon->applicability == 'specific')
    @if(!empty($coupon->track_filters))
  • {{ __('dashboard.Tracks') }}
  • @endif @if(!empty($coupon->placement_test_filters))
  • {{ __('dashboard.Placement Tests') }}
  • @endif @if($coupon->applies_to_gift_calls)
  • {{ __('dashboard.Gift Calls') }}
  • @endif @if($coupon->applies_to_discussion_groups)
  • {{ __('dashboard.Discussion Groups') }}
  • @endif
@if(!empty($coupon->track_filters))
    @if(in_array('all_tracks', $coupon->track_filters))
  • {{ __('dashboard.All Tracks') }}
  • @endif @if(in_array('specific_categories', $coupon->track_filters) && $coupon->trackCategories->isNotEmpty())
  • {{ __('dashboard.Specific Track Categories') }}:
      @foreach($coupon->trackCategories as $category)
    • {{ $category->name }}
    • @endforeach
  • @endif @if(in_array('specific_tracks', $coupon->track_filters) && $coupon->tracks->isNotEmpty())
  • {{ __('dashboard.Specific Tracks') }}:
      @foreach($coupon->tracks as $track)
    • {{ $track->name }}
    • @endforeach
  • @endif
@endif @if(!empty($coupon->placement_test_filters))
    @if(in_array('all_tests', $coupon->placement_test_filters))
  • {{ __('dashboard.All Placement Tests') }}
  • @endif @if(in_array('specific_categories', $coupon->placement_test_filters) && $coupon->placementTestCategories->isNotEmpty())
  • {{ __('dashboard.Specific Test Categories') }}:
      @foreach($coupon->placementTestCategories as $category)
    • {{ $category->name }}
    • @endforeach
  • @endif @if(in_array('specific_tests', $coupon->placement_test_filters) && $coupon->placementTests->isNotEmpty())
  • {{ __('dashboard.Specific Tests') }}:
      @foreach($coupon->placementTests as $test)
    • {{ $test->name }}
    • @endforeach
  • @endif
@endif @endif
@if($coupon->paymentMethods->isNotEmpty())
    @foreach($coupon->paymentMethods as $method)
  • {{ $method->name }}
  • @endforeach
@else

{{ __('dashboard.All Payment Methods') }}

@endif
@endsection @section('scripts') @endsection