@extends('dashboard.layout.layout') @section('content')
{!! trans('dashboard.product_offer.product_offers') !!}
{{ trans('dashboard.product_offer.add_product_offer') }}
{!! $current_product_offers->links() !!}
@foreach ($current_product_offers as $product_offer) @endforeach
# {{ trans('dashboard.product.product') }} {{ trans('dashboard.product_offer.product_offer_type') }} {{ trans('dashboard.product_offer.value') }} {{ trans('dashboard.product_offer.offer_price') }} {!! trans('dashboard.product.active_status') !!} {{ trans('dashboard.product_offer.expire_date') }} {!! trans('dashboard.general.added_date') !!} {!! trans('dashboard.general.control') !!}
{{ $loop->iteration }} {{ @$product_offer->product->name }} {{ trans('dashboard.product_offer.offer_types.'.$product_offer->offer_type) }} @switch($product_offer->offer_type) @case('discount') {!! $product_offer->offer_percentage ." " !!} @break @case('product') {!! $product_offer->offer_products_html !!} @break @endswitch {{ $product_offer->offer_price }}
is_active ? 'checked' : '' }} class="custom-control-input" onchange="toggleActive('{{ $product_offer->id }}')" type="checkbox">
{{ $product_offer->expire_date->format('Y-m-d') }}
{{ $product_offer->created_at->format("Y-m-d") }}
{!! $current_product_offers->links() !!}
@include('dashboard.layout.delete_modal') @endsection @section('page_styles') @endsection @include('dashboard.product_offer.scripts')