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

Show an Order

Order Details

@if(Auth::user()->role != 'Saler' && Auth::user()->role != 'User' ) View All @endif
@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
@if(Auth::user()->role != 'Saler' && Auth::user()->role != 'User' ) @if($order->status != 'cancelled')
@method('PUT') @csrf
@else
@endif @else
{{$order->status}}
@endif
@if(isset($order->orderby_id))
Name Email Mobile
{{$order->name}} {{$order->email}} {{$order->mobile}}
@else
@endif
@if(isset($order->orderby_id))
Name Email Mobile
{{$order->orderBy->name}} {{$order->orderBy->email}} {{$order->orderBy->mobile}}
@else
@endif
@foreach($order->orderItems as $key => $orderItem) @endforeach
Product Name Quantity Size Color Price Sub Total
{{$orderItem->product->title}} ({{$orderItem->product->code}}) {{$orderItem->qty}} {{$orderItem->size}} {{$orderItem->product->title}} {{$orderItem->price}} {{$orderItem->sub_total}}
Payment Information
Payment Menthod Payment Details
@if($order->payment_method == '1')
Cash on delivery
@else @php $ins = \App\Instruction::where('id',$order->payment_method)->first(); @endphp @if($ins) {{ $ins->account_name }} @endif @endif
Sender Account: {{ $order->txd_acc }}
TXID: {{ $order->txd_id }}
@if(isset($order->editedby_id))
Name Email Mobile
{{$order->editedBy->name}} {{$order->editedBy->email}} {{$order->editedBy->mobile}}
@else
@endif
@endsection @section('js_after') @endsection