@extends('layouts.app') @php($editing = $account->exists) @section('title', $editing ? 'Edit '.$account->name : 'New account') @section('content')
@csrf @if ($editing) @method('PUT') @endif @include('partials.error-summary')
@if ($account->is_system)
System accounts keep their type so the app can post to them correctly.
@else @foreach (\App\Models\Account::TYPES as $key => $label)@endforeach @endif @unless ($account->is_system && in_array($account->role, ['cash', 'bank', 'receivable', 'payable', 'sales', 'purchases', 'tax_payable', 'opening_equity'], true)) @endunless
Cancel
@endsection