@extends('layouts.app') @section('title',($party->exists?'Edit':'Add').' Party') @section('page_title',($party->exists?'Edit':'Add').' Party') @section('content')

{{ $party->exists?'Edit':'Add' }} Party

Create one party record and select every applicable business role.

Back
@csrf @if($party->exists)@method('put')@endif
Identity & Roles
@php($selected=old('roles',$party->exists?$party->roles->pluck('role')->map(fn($r)=>$r->value ?? $r)->all():[]))@foreach($roleOptions as $role)@endforeach
Contact & Address
Accounting Defaults
@foreach(['default_receivable_account_id'=>'Receivable Account','default_payable_account_id'=>'Payable Account','default_income_account_id'=>'Income Account','default_expense_account_id'=>'Expense Account'] as $field=>$label)
@endforeach
exists?$party->is_active:true))>
Cancel
@endsection