@extends('layouts.admin') @section('header-content') @endsection @section('content')
Order Details
{!! csrf_field() !!}
@if ($errors->has('booked_by')) {{ $errors->first('booked_by') }} @endif
@if ($errors->has('shop')) {{ $errors->first('shop') }} @endif
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('discount')) {{ $errors->first('discount') }} @endif
@if ($errors->has('payment')) {{ $errors->first('payment') }} @endif
@if ($errors->has('date_to_deliver')) {{ $errors->first('date_to_deliver') }} @endif
@if ($errors->has('latitude')) {{ $errors->first('latitude') }} @endif
@if ($errors->has('longitude')) {{ $errors->first('longitude') }} @endif


@php $old_product_categories=array(); @endphp @if(!empty($order)) @foreach($order->products->toarray() as $key=>$value) @php if(isset($order->products[$key]->products)){ $is_scheme=$order->products[$key]->products->is_scheme; $scheme_quantity=$order->products[$key]->products->scheme_quantity; $scheme_free_quantity=$order->products[$key]->products->scheme_free_quantity; if($is_scheme){ $scheme=$scheme_quantity.'+'.$scheme_free_quantity; }else{ $scheme='No Scheme'; } } if(count($value['order_product_categories'])>0){ foreach ($value['order_product_categories'] as $index=>$category){ $old_product_categories[$key]['type'][$index]['id']=$category['id']; $old_product_categories[$key]['type'][$index]['order_product_id']=$category['order_product_id']; $old_product_categories[$key]['type'][$index]['product_category_id']=$category['product_category_id']; $old_product_categories[$key]['type'][$index]['quantity']=$category['quantity']; }} @endphp
@endforeach @endif @if(!isset($key) || empty($key)) @endif


@if(!empty($order)) @foreach($order->OrderImages->toarray() as $key2=>$value)
@if(isset($value['image']) && !empty($value['image']))
Remove @endif
@endforeach @endif @if(!isset($key2) || empty($key2)) @endif
@if(!empty($order)) {!! method_field('PUT') !!} @endif {{ csrf_field() }}
@endsection @section('footer-content') {{--Time Picker--}} {{--End Time picker--}} {{--Append Product--}} @endsection