@extends('layouts.app') @section('title', __('vendor.edit')) @section('content')
@if (request('action') == 'delete' && $vendor) @can('delete', $vendor)
{{ __('vendor.delete') }}

{{ $vendor->name }}

{{ $vendor->description }}

{!! $errors->first('vendor_id', ':message') !!}

{{ __('vendor.delete_confirm') }}
@endcan @else
{{ __('vendor.edit') }}
{{ Form::model($vendor, ['route' => ['vendors.update', $vendor], 'method' => 'patch']) }}
{!! FormField::text('name', ['required' => true, 'label' => __('vendor.name')]) !!} {!! FormField::textarea('description', ['label' => __('vendor.description')]) !!}
{{ Form::close() }}
@endif @endsection