@extends('layouts.admin') @section('content')
{!! Form::open(array('route' => 'related-items.create', 'method' => 'GET')) !!}
{!! Form::select('category[]', $categories, (isset($_GET['category']))?($_GET['category']):null, ['class'=>'form-control select2','multiple'=>true]) !!}
{!! Form::text("keyword", (isset($_GET['keyword']))?$_GET['keyword']:'', ['placeholder'=> __('item.item_name'),'class'=>'form-control custom-input-group custom-input-group-small']) !!}
{!! Form::submit(__('orders.search'), ['class'=>'btn btn-primary waves-effect waves-light width80']) !!}
{!! Form::close() !!}
@if(isset($result) && count($result)>0)
@php $i = 1; @endphp @foreach ($result as $r_item) @php if($r_item->is_schedule==1){ $currentDate=strtotime(currentDate(true)); $startDate = strtotime($r_item->start_date); $endDate = strtotime($r_item->end_date); if(!($currentDate > $startDate && $currentDate < $endDate)) { continue; } } @endphp
{{ numberFormat($r_item->regular_price) }}
{{ numberFormat($r_item->offer_price) }}
@endforeach
@else
{!! __('message.not-found') !!}
@endif
{{-- Pagination --}}
{!! $result->withQueryString()->links() !!}
@endsection @section('script') @endsection