@extends('layouts.business.master') @section('title') {{ request('type') !== 'Supplier' ? __('Edit Customer') : __('Edit Supplier') }} @endsection @php $file = base_path('lang/countrylist.json'); if (file_exists($file)) { $countries = json_decode(file_get_contents($file), true); } else { $countries = []; } $type = request('type') !== 'Supplier' ? 'Customer' : 'Supplier'; @endphp @section('main_content')
@php $type = ucfirst(request('type')); @endphp

{{ __('Edit :type', ['type' => __($type)]) }}

@usercan('parties.read') {{ __(':type List', ['type' => __($type)]) }} @endusercan
@csrf @method('put')
@if (request('type') !== 'Supplier')
@else
@endif @php $branch_logic = $party->branch_id != (auth()->user()->active_branch?->id); @endphp
@if ($branch_logic) {{__('This party is from another branch, you can not change the opening from here.') }} @endif
@if (request('type') !== 'Supplier')
@endif

@php $billing = is_array($party->billing_address) ? $party->billing_address : json_decode($party->billing_address, true) ?? []; @endphp

@php $shipping = is_array($party->shipping_address) ? $party->shipping_address : json_decode($party->shipping_address, true) ?? []; @endphp
{{__('Image')}} {{__('(PNG & JPG)')}}
icon

{{__('Drag & drop your Image')}}

or {{__('Browse')}}

{{ __('Cancel') }} @usercan('parties.update') @endusercan
@endsection