Manage the stores available in Purchase codes and the customer receipt form.
any() && old('editing_branch')==='new') open @endif>Add store branch +
@forelse($branches as $branch)
{{ $branch->code }} — {{ $branch->name }}
{{ $branch->active ? 'Active' : 'Inactive' }}
@if($branch->state)
{{ $branch->state }}
@endif @if($branch->address)
{{ $branch->address }}
@endif
any() && (string)old('editing_branch')===(string)$branch->id) open @endif>Edit branch details
@if($branch->used)This branch has purchase history. Deactivate it to stop new entries.@else@endif
@empty
No store branches yet. Add your first branch above.
@endforelse
@if($legacy)
Match older branch names
Select the correct store for each name previously entered. Existing labels stay unchanged. Matching connects the records and prevents the same receipt being used again under the new store name.
@foreach($legacy as $entry)@endforeach@endif
@endsection
@push('scripts')@endpush