| # |
اسم العميل |
رقم الهاتف |
إجراء التواصل |
@foreach($customers as $key => $customer)
@php
// تنظيف الرقم وإضافة كود الدولة
$phone = preg_replace('/^0/', '966', trim($customer->phone));
@endphp
| {{ $customers->firstItem() + $key }} |
{{-- اسم العميل --}}
{{ $customer->name }}
|
{{-- رقم الهاتف --}}
@if($customer->phone)
{{ $customer->phone }}
@else
لا يوجد هاتف
@endif
|
{{-- زر الواتساب --}}
@if($customer->phone)
@else
غير متاح
@endif
|
@endforeach
عرض {{ $customers->firstItem() }} إلى {{ $customers->lastItem() }} من إجمالي {{ $customers->total() }} عميل
{{ $customers->links() }}