@if ($message = Session::get('success'))

{{ $message }}

@endif
@method('PUT') @csrf
{{ trans('global.create') }} Purchase Order
@if($errors->has('shipOption'))
{{ $errors->first('shipOption') }}
@endif
@if(!$showCustomShipping)
@elseif($showCustomShipping)
@if($errors->has('shipToCustomName'))
{{ $errors->first('shipToCustomName') }}
@endif
@if($errors->has('shipToCustomContactNumber'))
{{ $errors->first('shipToCustomContactNumber') }}
@endif
@if($errors->has('shipToCustomAddress'))
{{ $errors->first('shipToCustomAddress') }}
@endif
@endif
{{--
--}}
@if($errors->has('poDate'))
{{ $errors->first('poDate') }}
@endif
@if($errors->has('payment_terms'))
{{ $errors->first('payment_terms') }}
@endif
@if($errors->has('sales_order_remark'))
{{ $errors->first('sales_order_remark') }}
@endif
Purchase Order Items
{{--
@error('newProductQty')

Please Enter Quantity Of Product

@enderror
Total : RM{{ number_format($salesOrderAmount, 2) }}
--}}
@foreach ($carts as $key => $cart)
{{ $cart->product_name }}
{{ $cart->product_name }}
Qty: {{ $cart->product_quantity }}
@if($showOfferedPrice)

RM{{ number_format($cart->product->sell_price,2) }} RM{{ number_format($cart->offered_price,2) }}

RM{{ number_format($cart->offered_price,2) }}/Each @else

RM{{ number_format($cart->product_price,2) }}

RM{{ number_format($cart->product_price,2) }}/Each @endif
{{--
--}}
@endforeach
Total RM{{ number_format($cartTotalAmount, 2) }}
@section('scripts') @endsection