@extends('admin.master') @section('title', @trans('Payment')) @section('content')

@trans('Payment')

@csrf
@forelse ($payments as $item) @php // تحديد النص واللون بناءً على حالة الدفع switch ($item->payment_status) { case 'pending': $statusText = __('Completed'); $statusClass = 'text-primary'; break; case 'completed': $statusText = __('Pending'); $statusClass = 'text-success'; break; default: $statusText = __('Failed'); $statusClass = 'text-danger'; break; } @endphp @empty @endforelse
# @trans('Full name') @trans('email') @trans('phone') @trans('Payment Type') @trans('Price') @trans('Payment Status') @trans('Settings')
{{ $loop->index + 1 }} {{ @$item->user->first_name }} {{ @$item->user->last_name }} {{ @$item->user->email }} {{ @$item->user->phone }} {{ $item->payment_type }} {{ $item->price }} @if ($item->payment_status == 'pending') @trans('Pending') @elseif ($item->payment_status == 'completed') @trans('Completed') @else @trans('Failed') @endif @include('admin.pages.payment._model_delete', ['id' => $item->id])
@trans('No Payments Record found')
@endsection