@extends('profile.layout') @section('title', __('Kontaktlar')) @section('content') {{-- Header + export --}}

{{ __('Kontaktlar') }}

{{-- Filters --}}
{{ __('Təmizlə') }}
{{ $total }} {{ __('nəticə tapıldı') }}
{{-- Table --}} @if($orders->isEmpty())

{{ __('Kontakt tapılmadı') }}.

@else
@foreach($orders as $o) @php $isOrder = (float) $o->total_amount > 0; @endphp @endforeach
{{ __('Kontakt') }} {{ __('Telefon') }} {{ __('Email') }} {{ __('Ünvan') }} {{ __('Səhifə') }} {{ __('Status') }} {{ __('Məbləğ') }} {{ __('Tarix') }}
{{ $o->customer_name }} @if($isOrder) {{ __('Sifariş') }} @else {{ __('Müraciət') }} @endif
@if($o->notes)
{{ $o->notes }}
@endif
{{ $o->customer_phone }} @if($o->customer_email) {{ $o->customer_email }} @else — @endif @if($o->customer_address) {{ $o->customer_address }} @else — @endif {{ $o->page->title ?? '—' }} {{ \App\Models\Order::statusLabel($o->status) }} @if($isOrder) {{ number_format((float) $o->total_amount, 2) }} ₼ @else — @endif {{ $o->created_at->format('d.m.Y H:i') }}
{{ $orders->links() }}
@endif @endsection