@extends('admin.layout.master') @section('title','ADMIN ORDER MANAGEMENT') @section('custom_style') @endsection @section ('content')

{{request()->group?getAccountsGroup()->where('id',request()->group)->first()->name:''}} ORDER {{$type==1?'RETURN':''}} CREATE

@if(!marketing_customer()) @else @endif
@csrf
@if(count($shops)>0)
@elseif(count($parties)>0) {{--
--}} {{--
--}} @endif
@if($type>3)
{{--
--}} {{--
--}}
@endif {{--
--}}
@php $i=1; $productData=[]; @endphp @forelse ($finishedProducts as $cat) @php $k=1; @endphp {{-- @forelse ($cat->product->sortBy('serial') as $item) --}} @forelse ($cat->product as $item) @php // $productData[$item->id]=$item; array_push($productData,$item); @endphp {{-- --}} @empty @endforelse @empty @endforelse
# Product English Product Rate Quantity
{{$cat->name_local}}
{{ $k++ }} {{ $item->name_eng }} {{-- --}} {{ $item->name_local }} @php $freeProduct=$carts->where('product_id',$item->id)->first(); @endphp @if($freeProduct) ({{$freeProduct->free_quantity.' : '.$freeProduct->min_sale_quantity}}) @if($freeProduct->product_id!=$freeProduct->free_product_id) {{$freeProduct->freeProduct?$freeProduct->freeProduct->name_eng:''}} @endif
@endif
{{ ($item->currentPrice?$item->currentPrice->sell_price:$item->sell_price)*$item->unit_quantity }}

@include('inventory.order.admin.cart') @include('inventory.global.img_show') @endsection @section('script') @stop