@extends('layouts.app') @php($editing = $vendor->exists) @section('title', $editing ? 'Edit '.$vendor->name : 'New vendor') @section('content')
@csrf @if ($editing) @method('PUT') @endif @include('partials.error-summary') @foreach ($categories as $c)
@if (amounts_visible()) @endif @include('partials.assign-to', ['value' => $vendor->assigned_to])
Cancel Unsaved changes
@endsection