@extends('admin.layouts.dashboard') @section('title', 'Offers') @section('content')

Offers

@if($offers->count() > 0) @foreach($offers as $key =>$offer) @endforeach @else

No offer Found

@endif
# Name Promo Code Type Category Amount Status Action
{{ $offers->firstItem() + $key }} {{ $offer->name }} {{ $offer->code }} {{ $offer->type }} @if(!empty($offer->item_id)) Product @elseif(!empty($offer->category_id)) Category @elseif(!empty($offer->user_id)) User @elseif(!empty($offer->limit)) Amount Limit @endif @if($offer->type == 'flat') Rs.{{ $offer->amount }} OFF @else {{ $offer->amount }}% OFF @endif @if($offer->status) @php $statusBtn = '' @endphp Active @else @php $statusBtn = '' @endphp Deactive @endif {!! $statusBtn !!}
{!! $offers->links() !!}
@endsection