@extends('admin.layouts.master') @section('title', $supplier->name_ar) @section('page_title', $supplier->name_ar . ' (' . $supplier->code . ')') @section('breadcrumbs') @endsection @section('content')

{{ $supplier->name_ar }} @if($supplier->name_en){{ $supplier->name_en }}@endif

{{ $supplier->type === 'company' ? 'شركة' : 'فرد' }} {{ $supplier->status }} @if($supplier->rating) {{ str_repeat('★', $supplier->rating).str_repeat('☆', 5 - $supplier->rating) }} @endif @if($supplier->phone) {{ $supplier->phone }}@endif @if($supplier->email) {{ $supplier->email }}@endif
@can('suppliers.edit') {{ __('admin.edit') }} @endcan @can('suppliers.delete') @endcan
الكود{{ $supplier->code }}
المحافظة{{ $supplier->governorate ?? '—' }}
المدينة{{ $supplier->city ?? '—' }}
العنوان{{ $supplier->address ?? '—' }}
الموقع{{ $supplier->website ? ''.$supplier->website.'' : '—' }}
السجل التجاري{{ $supplier->commercial_register ?? '—' }}
البطاقة الضريبية{{ $supplier->tax_card ?? '—' }}
المسؤول{{ $supplier->contact_person ?? '—' }} {{ $supplier->contact_phone ? '— '.$supplier->contact_phone : '' }}
الرصيد الافتتاحي{{ format_money($supplier->opening_balance) }}
شروط الدفع{{ $supplier->payment_terms ?? '—' }}
مدة التوريد{{ $supplier->lead_time_days }} يوم
@if($supplier->notes)
ملاحظات: {!! nl2br(e($supplier->notes)) !!}
@endif
المتابعات
@can('suppliers.edit') @endcan
@if($supplier->followUps->isEmpty())

لا توجد متابعات بعد.

@else @foreach($supplier->followUps as $f) @php $iconMap = ['call'=>'phone','visit'=>'walking','email'=>'envelope','whatsapp'=>'comment','sms'=>'sms','meeting'=>'users','other'=>'circle']; $colorMap = ['pending'=>'warning','completed'=>'success','cancelled'=>'secondary']; @endphp
{{ $f->subject }} {{ $f->status }} {{ $f->followup_date?->format('Y-m-d H:i') }}
@if($f->notes)
{!! nl2br(e($f->notes)) !!}
@endif
@endforeach @endif
@if($supplier->stockReceivings->isEmpty())

لا توجد استلامات بعد.

@else @foreach($supplier->stockReceivings as $g) @endforeach
الرقمالتاريخالإجماليالحالة
{{ $g->number }} {{ $g->received_at?->format('Y-m-d') }} {{ number_format((float) $g->total_cost, 2) }} {{ $g->status }}
@endif
@include('admin.suppliers._followup_modal', ['supplier' => $supplier]) @endsection @push('scripts') @include('admin._partials.crud_scripts') @endpush