@extends('admin.layouts.container') @section('content')

{{ $head ?? '' }}

@if($order ?? '' && $order->id) @method('PUT') @endif @CSRF @if($order->deleted_at) @endif @if(!$order->deleted_at)

{{__('orders.status')}}

@if(!in_array($order->status ,['recieved','canceled']))
@endif @endif

{{__('orders.info')}}


{{__('orders.payment')}}

@if($order->payment->discount != 0)
@if($order->payment->discount_status == 'cobon')
@endif @endif
@if($order->payment->image) @endif

{{__('orders.user_info')}}

@if(($order->user ? $order->user->role : 'user' ) != 'company')
@endif

@if($order->rep ?? null)

{{__('orders.rep_data')}}

@if(($order->rep_image ?? "") && is_file(public_path($order->rep_image)))
{{ __('orders.rep_image') }}
@endif

@endif

{{__('orders.address')}}

@if(($order->address->address->location_image ?? "") && is_file(public_path($order->address->address->location_image)))
{{-- --}} {{ __('web.location_image') }}
@endif @if(($order->address->address->stock_image ?? "") && is_file(public_path($order->address->address->stock_image)))
{{-- --}} {{ __('web.stock_image') }}
@endif

{{__('orders.products')}}

@foreach($products as $key=>$row)
@endforeach
@endsection @section('inner_js') @endsection