@extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('My Orders')) @section('titlebar_actions', '') @section('content')
{{ __('Order Id') }} {{ __('Status') }} {{ __('Plan Name') }} {{ __('Words') }} {{ __('Images') }} {{ __('Price') }} {{ __('Tax') }} {{ __('Type') }} {{ __('Date') }} {{ __('Actions') }} @foreach ($list as $entry) {{ $entry->order_id }} @php switch ($entry->status) { case 'Success': $badge_type = 'success'; break; case 'Waiting': $badge_type = 'secondary'; break; case 'Approved': $badge_type = 'success'; break; case 'Rejected': $badge_type = 'danger'; break; default: $badge_type = 'default'; break; } @endphp {{ __($entry->status) }} {{ __(@$entry->plan->name ?? 'Archived') }} {{ @$entry->plan->total_words ?? '-' }} {{ @$entry->plan->total_images ?? '-' }} @if (currencyShouldDisplayOnRight(currency()->symbol)) {{ $entry->price }}{{ currency()->symbol }} @else {{ currency()->symbol }}{{ $entry->price }} @endif @if (currencyShouldDisplayOnRight(currency()->symbol)) {{ $entry->tax_value ?? 0 }}{{ currency()->symbol }} @else {{ currency()->symbol }}{{ $entry->tax_value ?? 0 }} @endif {{ __($entry->type) }}

{{ date('j.n.Y', strtotime($entry->created_at)) }} {{ date('H:i:s', strtotime($entry->created_at)) }}

@endforeach
@endsection