@extends('layouts.app') @php $selectedSuppliers = collect($agency->suppliers ?? []) ->pluck('id') ->toArray(); @endphp @section('content')
{{-- ── TOOLBAR ── --}}

Agency Profile

{{-- ── CONTENT ── --}}
{{-- Agency Header --}}
@include('admin.agency.agency_header')
{{-- ── CARD HEADER ── --}}
Company / Agency Information
{{-- ── SUCCESS ALERT ── --}} @if(session()->has('success'))
{{ session()->get('success') }}
@endif {{-- ── FORM ── --}}
@csrf @method('PUT') {{-- Section Label --}}
@if($errors->has('company_name'))
{{ $errors->first('company_name') }}
@endif
@if($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
@if($errors->has('currency_id'))
{{ $errors->first('currency_id') }}
@endif
@if($errors->has('credit_limit'))
{{ $errors->first('credit_limit') }}
@endif
{{ '+968' }}
@if($errors->has('agency_phone'))
{{ $errors->first('agency_phone') }}
@endif
@if($agency->agency_logo)
Agency Logo
@endif Leave empty to keep existing logo
{{-- Suppliers Section --}}
@foreach($suppliers as $supplier)
id, $selectedSuppliers) ? 'checked' : '' }}>
@endforeach
@endsection @section('scripts') @endsection