@section('page_css')
@include('owner.loyalty.partials._action_buttons')
@if (Session::has('success')) @endif @if(isset($records) && !empty($records) && count($records)) @foreach($records as $index =>$singleData) @endforeach
Sl No. Loyalty Name Loyalty Type Number of Paid Wash Number of Free Wash Discount(%) Start Date End Date Status Action
{{$index + $records->firstItem()}} {{$singleData['loyalty_name']}} @if($singleData['loyalty_type'] == 1) Free Wash @elseif($singleData['loyalty_type'] == 2) Price Discount @else Loyalty Points @endif {{$singleData['no_of_paid_wash']}} {{$singleData['no_of_free_wash']}} {{$singleData['discount_value']}} @if($singleData['start_date'] != '') {{ date('Y/m/d', strtotime($singleData['start_date'])) }} @endif @if($singleData['end_date'] != '') {{ date('Y/m/d', strtotime($singleData['end_date'])) }} @endif @if($singleData['is_active'] == 1) Active @elseif($singleData['is_active'] == 0) inactive @endif
@endif
@if(isset($records) && count($records)) {{ $records->appends($_GET)->links('pagination::bootstrap-4') }} @endif
@section('page_scripts') {{-- --}} @endsection