@extends('layouts.admin') @section('content') @include('include.datatable-css')
{{-- Filters HTML --}}
@include('include.export-button') @include('include.refresh-button')
{{-- Filters HTML End --}} @include('include.flash-message')
@foreach ($orders as $order) @isset($order->payment->paymentMethod) @else @endisset @isset($order->payment) @else @endisset @endforeach
Order Number Package Customer Trial Price Payment Method Image Email 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 ) }} {{ $order->payment->paymentMethod->name }} @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)) image @endif @endif {{ $order->payment->email }} {{ $order->created_at }}
@include('include.datatable') @include('include.filters-common-js-part') @include('include.datatable-date-range-selector-js', ['url' => 'cancelled-orders']) @endsection