@extends('admin.layouts.admin') @section('style') @endsection @section('content')

Incentive Rule List

@if(session('alert-green'))
{{ session('alert-green') }}
@endif @if(session('alert-danger'))
{{ session('alert-danger') }}
@endif @if($errors->any())
@foreach ($errors->all() as $error)
* {{$error}}
@endforeach
@endif {{ session('status') }}

Lists

{{-- --}}
@foreach($incentive_rules as $rule) {{----}} @endforeach
SL No. Product Name Designation Rules type Limits Amount
{{ $loop->iteration ?? '' }} {{ $rule->product->name ?? '' }} {{ $rule->designation ?? ''}} {{ ucfirst($rule->rule_type) ?? '' }} @php if(isset($rule->rule_details)){ foreach($rule->rule_details as $detail){ echo "

Range:(".$detail->low_limit."-".$detail->high_limit.") = ".$detail->amount ?? ''."

"; } } @endphp
{{ $rule->price ?? '' }}
@csrf
@include('admin.sections.footer')
@endsection @section('script') @endsection