@extends('backEnd.layouts.master') @section('title','Order Create') @section('css') @endsection @section('content')
@csrf

Order Create

@csrf
@error('product_id') {{ $message }} @enderror
@php $product_discount = 0; @endphp @foreach($cartinfo as $key=>$value) @php $product_discount += $value->options->product_discount*$value->qty; Session::put('product_discount',$product_discount); @endphp @endforeach
Image Name Quantity Sell Price Discount Sub Total Action
{{$value->name}}
{{$value->price}} {{($value->price - $value->options->product_discount)*$value->qty}}
@error('name') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@php $subtotal = Cart::instance('pos_shopping')->subtotal(); $subtotal = str_replace(',','',$subtotal); $subtotal = str_replace('.00', '',$subtotal); $shipping = Session::get('pos_shipping'); $total_discount = Session::get('pos_discount')+Session::get('product_discount'); @endphp
Sub Total {{$subtotal}}
Shipping Fee {{$shipping}}
Discount {{$total_discount}}
Total {{($subtotal + $shipping)- $total_discount}}
@endsection @section('script') @endsection