@section('title', 'Discounts') @section('heading', 'Discounts') @section('top-menu-items') @endsection
@can('write_store') @endcan
Selected
@can('write_store') @endcan @foreach ($discounts as $discount) @php // dd($discount->valid_until); @endphp @can('write_store') @endcan @endforeach
Code Percentage Fixed Valid Until DISCOUNT TYPE Online BookingActions
{{ $discount->code }} {{ $discount->percentage ? $discount->percentage : 'N/A' }} {{ $discount->fixed ? $discount->fixed : 'N/A' }} {{ $discount->valid_until ? Carbon\Carbon::parse($discount->valid_until)->format('Y-m-d') : 'N/A' }} {{ $discount->fixed ? 'Fixed' : 'Percentage'}} {{ $discount->online_booking ? 'YES': 'NO' }} Actions
{{ $discounts->onEachSide(1)->links('livewire::bootstrap') }}
@push('styles') @endpush @push('scripts') @endpush