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

Edit an Order

Order Form

@if (count($errors) > 0)
Whoops! There were some problems with your input.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if ($message = Session::get('success'))
{{ $message }}
@endif
@csrf @method('PATCH')
@if($order->status != 'cancelled')
@else
@endif
Order By
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('mobile')) {{ $errors->first('mobile') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
{{-- --}} @if ($errors->has('address')) {{ $errors->first('address') }} @endif
@if ($errors->has('message')) {{ $errors->first('message') }} @endif
@if(isset($order->orderby_id))
Name Email Mobile
{{$order->orderBy->name}} {{$order->orderBy->email}} {{$order->orderBy->mobile}}
@else
@endif
Product Details
@if ($errors->has('total_product')) {{ $errors->first('total_product') }} @endif
@if ($errors->has('total_qty')) {{ $errors->first('total_qty') }} @endif
@if ($errors->has('total_price')) {{ $errors->first('total_price') }} @endif
@if ($errors->has('shipping_cost')) {{ $errors->first('shipping_cost') }} @endif
@if ($errors->has('final_price')) {{ $errors->first('final_price') }} @endif
Ordered Product
@foreach($order->orderItems as $key => $orderItem)
@endforeach
Other Details
@if ($errors->has('payment_method')) {{ $errors->first('payment_method') }} @endif
@if(isset($order->editedby_id))
Name Email Mobile
{{$order->editedBy->name}} {{$order->editedBy->email}} {{$order->editedBy->mobile}}
@else
@endif
@endsection