@extends('layouts.dashboard.managerapp') @section('title', 'Edit Customer/Vendor') @section('content')

UEPL / Edit Customer/Vendor

day, 00 month 0000
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Edit Customer/Vendor

@csrf @method('PUT')
@foreach(['Customer','Vendor','Both'] as $role)
company_role == $role ? 'checked' : '' }} required>
@endforeach
@error('company_role') {{ $message }} @enderror Please select a company role.
@if($customer->image)
@endif Leave blank to keep existing



Contact Persons
@foreach ($customer->contactPersons as $i => $person)
@if($i > 0) @endif
name) }}" required>
email) }}" required>
mobile) }}" required>
designation) }}">
@endforeach @if($customer->contactPersons->count() == 0)
@endif
{{-- JS for dynamic contact persons --}} @endsection