@extends('layouts.master') @section('css') @endsection @section('page-header') @endsection @section('content')
{{ __('promotions.channel_balance') }}

{{ number_format((float)$balance, 2) }} {{ __('promotions.sar') }}

{{ __('promotions.total_customers') }}

{{ number_format($totalCustomers) }}

{{ __('promotions.promotional_sent_count') }}

{{ number_format($promotionalCount) }}

{{ __('promotions.normal_sent_count') }}

{{ number_format($normalCount) }}

{{ __('promotions.compose_campaign') }}
{{ __('promotions.whatsapp_sender') }}
{{ __('promotions.template_guarantee_notice') }}
Ad
أهلاً بك عميلنا العزيز محمد، يسعدنا في يعرب للخياطة تقديم أقوى عروضنا الخاصة وتفصيل أرقى الأقمشة الرجالية. بانتظار تشريفكم لنا!
{{ date('h:i A') }}
{{ __('promotions.customer_list') }}
@if(request('search') || request('type_filter')) إلغاء الفلترة @endif
@forelse($customers as $index => $customer) @php $lastMsg = $customer->lastMessage; $cleanPhone = preg_replace('/\D/', '', $customer->phone); @endphp @empty @endforelse
{{ __('promotions.number') }} {{ __('promotions.customer_name') }} {{ __('promotions.phone_number') }} {{ __('promotions.last_message') }} {{ __('promotions.last_message_type') }} {{ __('promotions.actions') }}
{{ $customers->firstItem() + $index }} {{ $customer->name }} @if($customer->phone) {{ $customer->phone }} @else لا يوجد @endif @if($lastMsg)
@if($lastMsg->content_type === 'image') @endif {{ $lastMsg->message ?: 'إعلان بدون نص' }}
{{ $lastMsg->created_at->diffForHumans() }} @if($lastMsg->status === 'sent') @else @endif
@else {{ __('promotions.no_previous_messages') }} @endif
@if($lastMsg) @if($lastMsg->message_type === 'promotional') {{ __('promotions.badge_promotional') }} @else {{ __('promotions.badge_normal') }} @endif @else {{ __('promotions.badge_not_sent') }} @endif
{{ __('promotions.no_customers_found') }}
عرض {{ $customers->firstItem() }} إلى {{ $customers->lastItem() }} من أصل {{ $customers->total() }} عميل
{{ $customers->links() }}
@endsection @section('js') @endsection