@extends('layouts.admin') @section('content') @include('include.datatable-css')
Order Number | Package | Customer | Trial | Price | Payment Method | Image | Date & Time | Action | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $order->orderNumber }} | {{ $order->package->title }} | @isset($order->user) {{ $order->user->firstName }} {{ $order->user->lastName }} @endisset | {{ $order->trial == '1' ? 'Yes' : 'No' }} | ${{ number_format($order->price,2 ) }} | @isset($order->payment->paymentMethod){{ $order->payment->paymentMethod->name }} | @else@endisset @isset($order->payment) | @if ($order->payment->image != '') @php $path = "public/uploads/users/" . $order->userId . "/payments/" . $order->payment->image; $image = asset(Storage::url($path)); @endphp @if (Storage::exists($path)) @endif @endif | {{ $order->payment->email }} | @else@endisset | {{ $order->created_at }} |