@extends('layouts.app') @section('content')

{{ _lang('All Coupons') }}

@if(has_permission('coupons.create')) {{ _lang('Add New') }} @endif
@foreach($coupons as $coupon) @endforeach
{{ _lang('Name') }} {{ _lang('Code') }} {{ _lang('Discount') }} {{ _lang('Status') }} {{ _lang('Action') }}
{{ $coupon->translation->name }} {{ $coupon->code }} @if($coupon->is_percent) {{ $coupon->value.' %' }} @else {{ $coupon->value }} @endif {!! $coupon->is_active ? xss_clean(status(_lang('Active'))) : xss_clean(status(_lang('Inactive'), 'danger')) !!}
{{ csrf_field() }}
@endsection