Deals

Create
@if (session()->has('message'))
{{ session('message') }}
@endif
@foreach ($deals as $deal) @endforeach
Id Name Description Discount Date Start Date End Is Hidden Actions
{{ $deal->id }} {{ $deal->name}} {{ $deal->description }}
{{ ($deal->discount) }} %
{{ $deal->start_date }}
{{ $deal->end_date }}
@if($deal->is_hidden == true) Hidden @else Visible @endif
{{ __('Edit') }} {{ __('Delete') }}
{{ $deals->links() }}
{{ __('Delete Deal') }} {{ __('Are you sure you want to delete the deal?') }}
{{ __('Cancel') }} {{ __('Delete') }}
{{-- {{ __('Add a new deal') }} --}} {{ isset($this->newDeal->id) ? 'Edit Deal' : 'Add Deal' }}
@error('newDeal.name') {{ $message }}@enderror
@error('newDeal.description') {{ $message }}@enderror
@error('newDeal.start_date') {{ $message }}@enderror
@error('newDeal.end_date') {{ $message }}@enderror
@error('newDeal.discount') {{ $message }}@enderror
@error('newDeal.is_hidden') {{ $message }}@enderror
{{ __('Cancel') }} Save