@php $products = \App\Module\Db\Product::getInstance()->getProductsByActive(); $countProduct = (isset($products) && is_array($products)) ? count($products) : 0; $nameMin = config('constant.name.min'); $nameMax = config('constant.name.max'); $addUrl = route('promotion.v2.add'); $refreshUrl = route('promotion.v2.index'); $advanceUrl = route('promotion.v2.search'); $headers = [ (object)['name'=>trans('admin::promotion.title.header'),'url'=>route('promotion.v2.index')], (object)['name'=>trans('admin::action.adv_search')], ]; @endphp @extends('shared.admin') @section('breadcrumb') @include('admin.components.elements.breadcrumb',[ 'header' => $headers, 'action' => 'list', 'perms' => [ 'rAdd' => true, ], ]) @endsection @section('content')
@include('components.forms.search-status')
@include('components.forms.search-rangedate',[ 'rangeDateLabel' => trans('admin::message.date.range.promotion_at') ])
@if($isResult)
@include('promotions.components.promotions')
@endif
@endsection @section('style') @endsection @section('script') @endsection