@extends('layouts.admin.master') @section('title', 'Discount') @section('content') {{-- --}}
Discount
@csrf
@error('main_category')
{{ $message }}
@enderror
@error('sub_category')
{{ $message }}
@enderror
@error('items')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('buy_quantity')
{{ $message }}
@enderror
@error('amount_discount')
{{ $message }}
@enderror
@error('percent_discount')
{{ $message }}
@enderror

Discount Days

Date Range

@error('start_date')
{{ $message }}
@enderror
@error('end_date')
{{ $message }}
@enderror

Happy Hour

@if (count($discounts) != 0) @php $count = 1; @endphp @foreach ($discounts as $discount) @if ($discount['monday'] == 'null' || $discount['monday'] == null) @elseif ($discount['monday'] == 1) @endif @if ($discount['tuesday'] == 'null' || $discount['tuesday'] == null) @elseif ($discount['tuesday'] == 1) @endif @if ($discount['wednesday'] == 'null' || $discount['wednesday'] == null) @elseif ($discount['wednesday'] == 1) @endif @if ($discount['thursday'] == 'null' || $discount['thursday'] == null) @elseif ($discount['thursday'] == 1) @endif @if ($discount['friday'] == 'null' || $discount['friday'] == null) @elseif ($discount['friday'] == 1) @endif @if ($discount['saturday'] == 'null' || $discount['saturday'] == null) @elseif ($discount['saturday'] == 1) @endif @if ($discount['sunday'] == 'null' || $discount['sunday'] == null) @elseif ($discount['sunday'] == 1) @endif @php $count++; @endphp @endforeach @endif
No Item Name Description Other Description Item Price Discount Type Amount Discount Percent Discount Promotion Price Mon Tue Wed Thu Fri Sat Sun Start Date End Date Start Happy Hour End Happy Hour Edit Delete
{{ $count }} {{ $discount['item_name'] }} {{ $discount['description'] }} {{ $discount['other_description'] }} {{ number_format($discount['item_price']) }} {{ $discount['discount_type'] }} {{ number_format($discount['amount_discount']) }} {{ $discount['percent_discount'] }} {{ number_format($discount['promotion_price']) }} {{ date('d-M-y', strtotime($discount['start_date'])) }} {{ date('d-M-y', strtotime($discount['end_date'])) }} {{ date('h:i A', strtotime($discount['start_happy_hour'])) }} {{ date('h:i A', strtotime($discount['end_happy_hour'])) }}
@endsection