@extends('admin.layout') @section('content')
@includeIf('admin.partials.languages')
@if (count($orders) == 0)

{{ __('NO REQUEST FOUND') . '!' }}

@else
@foreach ($orders as $order) @includeIf('admin.featured-listing.show-receipt') @includeIf('admin.featured-listing.details') @endforeach
{{ __('Order No.') }} {{ __('Listing Title') }} {{ __('Paid via') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Days') }} {{ __('Actions') }}
{{ '#' . $order->order_number }} @php $listing_content = App\Models\Listing\ListingContent::Where([ ['listing_id', $order->listing_id], ['language_id', $language->id], ]) ->select('title', 'listing_id', 'slug') ->first(); @endphp @if (!empty($listing_content)) {{ strlen(@$listing_content->title) > 35 ? mb_substr(@$listing_content->title, 0, 35, 'utf-8') . '...' : @$listing_content->title }} @else -- @endif {{ $order->payment_method }} @if ($order->gateway_type == 'online')

{{ __('Completed') }}

@else @if ($order->payment_status == 'pending')
@csrf
@else

{{ ucfirst($order->payment_status) }}

@endif @endif
@if ($order->order_status == 'pending')
@csrf
@else

{{ $order->order_status == 'completed' ? 'approved' : $order->order_status }}

@endif
@if ($order->order_status == 'completed') {{ $order->days }}{{ __('Days') }} ({{ \Carbon\Carbon::parse($order->start_date)->format('j F, Y') }} - {{ \Carbon\Carbon::parse($order->end_date)->format('j F, Y') }}) @else {{ $order->days }} @endif
@endif
@endsection