@extends('admin::index') @section('content')

{{ $header or trans('admin.title') }} {{ $description or trans('admin.description') }}

@include('partials.breadcrumb')
@include('partials.error') @include('admin::partials.exception') @include('admin::partials.toastr') {{-- MAIN CONTENT --}}
{{ __('Thêm sản phẩm') }}
{{ Form::open(array('url' => url()->current(), 'method' => 'get', 'class' => 'filter-group')) }}
{{ Form::close() }}
@forelse($products as $order) @php $isExpired = $order->expiry_date && $order->expiry_date->lt(\Carbon\Carbon::today()); $isNearExpiry = $order->expiry_date && $order->expiry_date->gte(\Carbon\Carbon::today()) && $order->expiry_date->lte(\Carbon\Carbon::today()->addDays($nearExpiryDays)); @endphp @empty @endforelse
{{__('Ảnh')}} {{__('Mã SP')}} {{__('Tên')}} {{__('Giá bán')}} {{__('Danh mục')}} {{__('Ngày tạo')}} {{__('Hạn sử dụng')}}
{{ $order->code }} {{ $order->name }} {{ number_format($order->sale_price,1)}}₫ {{ $order->category->name }} {{ $order->updated_at->format('d-m-Y H:i') }} {{ $order->expiry_date ? $order->expiry_date->format('d/m/Y') : '' }}
{{__('Không có dữ liệu')}}
@if(has_paging($products)) @endif
@endsection @php @endphp