@extends('layouts.back-end.app') @section('title', translate('deal_Product')) @section('content')

{{translate('add_new_product')}}

{{$deal['title']}}

@csrf
@include('admin-views.partials._select-product')
{{ translate('product_table')}} {{ $dealProducts->total() }}
@php($companyName = getWebConfig(name: 'company_name')) @foreach($dealProducts as $key => $product) @endforeach
{{ translate('SL')}} {{ translate('image')}} {{ translate('name')}} {{ translate('shop')}} {{ translate('price')}} {{ translate('action')}}
{{$dealProducts->firstitem() + $key}}
{{$product['name']}} @if($product->added_by == 'admin') {{ $companyName }} @else {{$product?->seller?->shop['name'] ?? translate('shop_not_found').'!!!'}} @endif {{setCurrencySymbol(usdToDefaultCurrency(amount: $product['unit_price']))}}
{!! $dealProducts->links() !!}
@if(count($dealProducts)==0) @include('layouts.back-end._empty-state',['text'=>'no_product_select_yet'],['image'=>'default']) @endif
@endsection @push('script') @endpush