@error('query'){{ $message }} @enderror
  Reset
  Add Promocode @if(isset($promocodes)) @if(!empty($promocodes)) @foreach($promocodes as $promocode)
Id Code Discount Type Amount Limit Value Promo For Promo Type Date Courses Status Action
{{$promocode->id}} {{$promocode->code}} {{$promocode->discount_type}} {{$promocode->amount}} {{$promocode->limit_value}} {{$promocode->promo_for}} @if($promocode->promo_type == "1") @endif @if($promocode->promo_type == "2") @endif {{date("d-m-Y",strtotime($promocode->start_date))."To".date("d-m-Y",strtotime($promocode->end_date))}} @if($promocode->status == 1) @endif @if($promocode->status == 0) @endif