@extends('layouts.app') @section('content')

{{trans('lang.order_plural')}}|{{trans('lang.order_desc')}}

@include('orders.show_fields')
@include('product_orders.table')
@if(auth()->user()->hasRole("admin")) @endif @if(auth()->user()->hasRole("admin")) @else @endif
{{trans('lang.order_subtotal')}} {!! getPrice($subtotal) !!}
{{trans('lang.default_tax')}} {!! getPrice($taxAmount)!!}
{{trans('lang.default_gst')}} {!! getPrice($gstAmount)!!}
{{trans('lang.credit')}} -{!! getPrice($walletAmount)!!}
{{trans('lang.order_total')}} {!! getPrice($total_with_wallet)!!}
{{trans('lang.order_total')}} {!!getPrice($total)!!}
@if(auth()->user()->hasRole("admin") || auth()->user()->hasRole("manager") ) @php $value = true; @endphp @foreach($order->productOrders as $product) @if($product->quantity != 1) @php $value = false; @endphp @break @endif @endforeach @if($order->productOrders->count() <= 1 || $value) {{-- --}} {{-- --}} @else {{-- {{ __('Reorder') }}--}} @endif @endif {{trans('lang.back')}}
@if($order->productOrders->count() != 1 || !$value) @endif
@endsection @push('scripts') @endpush