@extends('layouts.app') @section('content')

{{ __('Flash Deal Details') }}

{{ __('Deal Name:') }}

{{ $flashSale->name }}

{{ __('Start Date') }}:

{{ $flashSale->start_date }} {{ $flashSale->start_time }}

{{ __('End Date') }}:

{{ $flashSale->end_date }} {{ $flashSale->end_time }}

{{ __('Minimun Discount') }}:

{{ $flashSale->discount }}%

{{ __('Add New Product') }}

@csrf

{{ __('Added Products') }}

@forelse($dealProducts as $key => $product) @empty @endforelse
{{ __('SL') }} {{ __('Thumbnail') }} {{ __('Product Name') }} {{ __('Price') }} {{ __('Quantity') }} {{ __('Action') }}
{{ ++$key }}
{{ Str::limit($product->name, 50, '...') }} {{ showCurrency($product->pivot->price) }} {{ $product->pivot->quantity - $product->pivot->sale_quantity }}
{{ __('Sold') }}: {{ $product->pivot->sale_quantity ?? 0 }}
@hasPermission('shop.flashSale.product.edit') @endhasPermission @hasPermission('shop.flashSale.productRemove') {{ __('Delete') }} @endhasPermission
{{ __('No Data Found') }}
@csrf @method('PUT')
@endsection @push('scripts') @endpush @push('css') @endpush