@extends('layouts.agent') @section('styles') @endsection @section('content') {{--
{{ trans('global.create') }} Purchase Order
@method('POST') @csrf
@if($errors->has('bill_to'))
{{ $errors->first('bill_to') }}
@endif
@if($errors->has('ship_to'))
{{ $errors->first('ship_to') }}
@endif
@if($errors->has('date'))
{{ $errors->first('date') }}
@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
@foreach ($carts as $key => $cart)
{{ $cart->product_name }}
{{ $cart->product_name }}
Qty: {{ $cart->product_quantity }}
@if($cart->offered_price)

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) }}
--}} @endsection @section('scripts') @endsection