@extends('layouts.business.master') @section('title') {{ request('type') !== 'Supplier' ? __('Edit Customer') : __('Edit Supplier') }} @endsection @php $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_id = auth()->user()->branch_id ?? auth()->user()->active_branch_id ?? null; $branch_logic = $party->branch_id != $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