![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/inventory.corals.io/Corals/modules/Inventory/resources/views/orders/ |
@extends('layouts.crud.show') @section('content_header') @component('components.content_header') @slot('page_title') {{ $title_singular }} @endslot @slot('breadcrumb') {{ Breadcrumbs::render('inventory-order-show') }} @endslot @endcomponent @endsection @section('content') <div class="row"> <div class="col-md-8"> @component('components.box') @slot('box_title') @lang('Inventory::labels.order.order_details') @endslot <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <thead> <tr> <th>@lang('Corals::attributes.status')</th> <th>@lang('Inventory::attributes.order.user_id')</th> <th>@lang('Inventory::attributes.order.discount_total')</th> <th>@lang('Inventory::attributes.order.tax_total')</th> <th>@lang('Inventory::attributes.order.sub_total')</th> <th>@lang('Inventory::attributes.order.total')</th> </tr> </thead> <tbody> <tr> <td>{!!$order->present('status') !!}</td> <td>{!!$order->present('user_id') !!}</td> <td>{{$order->present('discount_total') }}</td> <td>{{$order->present('tax_total') }}</td> <td>{{$order->present('sub_total') }}</td> <td>{{$order->present('total') }}</td> </tr> </tbody> </table> </div> <h3>Items</h3> @include('Inventory::partials.ItemDetails',['object'=>$order]) @endcomponent @component('components.box') @slot('box_title') @lang('Inventory::labels.order.inventoryTransactions.title') @endslot @if($order->inventoryTransactions) <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <thead> <tr> <th>@lang('Inventory::labels.order.inventoryTransactions.code')</th> <th>@lang('Inventory::labels.order.inventoryTransactions.inventory')</th> <th>@lang('Inventory::labels.order.inventoryTransactions.item')</th> <th>@lang('Inventory::labels.order.inventoryTransactions.item_price')</th> <th>@lang('Inventory::labels.order.inventoryTransactions.quantity')</th> </tr> </thead> <tbody> @foreach($order->inventoryTransactions as $inventoryTransaction) <tr> <td>{{ $inventoryTransaction->PresentStripTags('code')}}</td> <td>{{ $inventoryTransaction->present('inventory') }}</td> <td>{!! $inventoryTransaction->present('item') !!}</td> <td>{{$inventoryTransaction->present('item_price')}}</td> <td>{{$inventoryTransaction->present('quantity')}}</td> </tr> @endforeach </tbody> </table> </div> @endif @endcomponent @component('components.box') @slot('box_title') @lang('Inventory::labels.order.paymentTransactions.title') @endslot @if($order->paymentTransactions) <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <thead> <tr> <th>@lang('Inventory::labels.order.paymentTransactions.type')</th> <th>@lang('Inventory::labels.order.paymentTransactions.amount')</th> <th>@lang('Inventory::labels.order.paymentTransactions.paid_amount')</th> <th>@lang('Corals::attributes.status')</th> <th>@lang('Inventory::labels.order.paymentTransactions.reference')</th> </tr> </thead> <tbody> @foreach($order->paymentTransactions as $paymentTransaction) <tr> <td>{{ $paymentTransaction->present('type')}}</td> <td>{{ $paymentTransaction->present('amount') }}</td> <td>{{ $paymentTransaction->present('paid_amount') }}</td> <td>{!! $paymentTransaction->present('status') !!}</td> <td>{{$paymentTransaction->present('reference')}}</td> </tr> @endforeach </tbody> </table> </div> <div> @if($order->type == 'inventory_order') @if($order->billing['payment_status']=='paid') <div> {!!$order->present('payment_status') !!} </div> @else <form action="{{url("inv/orders/$order->hashed_id/pay-order")}}" method="post" id="payment-form" data-page_action="redirectTo" class="ajax-form"> <div> @include('Payment::invoices.partials.payment') <div> <button id="checkout-pay" type="submit" class="btn btn-primary submit-btn"> @lang('Payment::labels.pay') </button> </div> </div> </form> @endif @else @if($invoice->status =='paid') <br> <a class="btn btn-success" style="margin-top: 30px" href="{{url("invoice/payments/$invoice->hashed_id/download")}}" target="_blank"> @lang('Payment::labels.invoice.download_invoice') </a> @else <form action="{{url("inv/orders/$order->hashed_id/pay-order")}}" method="post" id="payment-form" data-page_action="redirectTo" class="ajax-form"> <div> @include('Payment::invoices.partials.payment') <div> <button id="checkout-pay" type="submit" class="btn btn-primary submit-btn"> Add Payment </button> </div> </div> </form> @endif @endif </div> @endif @endcomponent </div> <div class="col-md-4"> <div class="row"> <div class="col-md-12"> @component('components.box') @slot('box_title') @lang('Inventory::labels.order.billing_add') @endslot <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <tbody> @isset($order->billing['billing_address']) <tr> <th>@lang('Inventory::attributes.order.address_one')</th> <td>{{ optional($order->billing['billing_address'])['address_1'] }}</td> </tr> <tr> <th>@lang('Inventory::attributes.order.address_two')</th> <td>{{ optional($order->billing['billing_address'])['address_2'] ?? '-' }}</td> </tr> <tr> <th>@lang('Inventory::attributes.order.city')</th> <td>{{ optional($order->billing['billing_address'])['city'] }}</td> </tr> <tr> <th>@lang('Inventory::attributes.order.state')</th> <td>{{ optional($order->billing['billing_address'])['state'] }}</td> </tr> <tr> <th>@lang('Inventory::attributes.order.zip')</th> <td>{{ optional($order->billing['billing_address'])['zip'] }}</td> </tr> <tr> <th>@lang('Inventory::attributes.order.country')</th> <td>{{ $order->billing['billing_address']['country'] }}</td> </tr> @endisset </tbody> </table> </div> <h4> Payment Details</h4> <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <tbody> <tr> <th>@lang('Inventory::attributes.order.payment_status')</th> <td>{!! $order->present('payment_status') !!} </td> </tr> </tbody> </table> </div> <div class="table-responsive"> <table class="table color-table info-table table table-hover table-striped table-condensed"> <tbody> <tr> <th>@lang('Inventory::attributes.order.invoice_link')</th> <td>{!!$order->present('invoice')!!}</td> </tr> </tbody> </table> </div> @endcomponent </div> </div> </div> </div> @endsection