@extends('admin.layout') @section('title','Zayavkalar') @section('content')

Zayavkalar

@php $typeLabels = ['tariff' => 'Tarif sifarişi', 'request' => 'Müraciət', 'complaint' => 'Şikayət']; @endphp
@foreach($applications as $a) @endforeach
# İstifadəçi Əlaqə Növ Tarif / Müddət Məbləğ Mətn Status Tarix
{{ $a->id }} {{ $a->user->name ?? '—' }} @if($a->user)
{{ $a->user->phone }}
{{ $a->user->email }}
@else—@endif
{{ $typeLabels[$a->type] ?? $a->type }} @if($a->type==='tariff')
{{ $a->plan->name ?? '—' }}
@if($a->months)
{{ $a->months }} ay
@endif @else
{{ $a->subject ?: '—' }}
@endif
{{ $a->amount ? number_format($a->amount, 2).' ₼' : '—' }} {{ $a->message ? \Illuminate\Support\Str::limit($a->message, 80) : '—' }} @if($a->status === 'processed') Emal olundu @else
@csrf @method('PUT')
@endif
{{ $a->created_at->format('d.m.Y H:i') }}
{{ $applications->links() }}
@endsection