@extends('layouts.admin') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.task.title_singular') }}
id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf
{{ trans('cruds.task.fields.name') }}
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ trans('cruds.task.fields.name_helper') }}
{{ trans('cruds.task.fields.description') }}
{{ old('description', $task->description) }}
@if($errors->has('description'))
{{ $errors->first('description') }}
@endif
{{ trans('cruds.task.fields.description_helper') }}
{{ trans('cruds.task.fields.status') }}
@foreach($statuses as $id => $entry)
status->id ?? '') == $id ? 'selected' : '' }}>{{ $entry }}
@endforeach
@if($errors->has('status'))
{{ $errors->first('status') }}
@endif
{{ trans('cruds.task.fields.status_helper') }}
{{ trans('cruds.task.fields.tag') }}
{{ trans('global.select_all') }}
{{ trans('global.deselect_all') }}
@foreach($tags as $id => $tag)
tags->contains($id)) ? 'selected' : '' }}>{{ $tag }}
@endforeach
@if($errors->has('tags'))
{{ $errors->first('tags') }}
@endif
{{ trans('cruds.task.fields.tag_helper') }}
{{ trans('cruds.task.fields.attachment') }}
@if($errors->has('attachment'))
{{ $errors->first('attachment') }}
@endif
{{ trans('cruds.task.fields.attachment_helper') }}
{{ trans('cruds.task.fields.due_date') }}
@if($errors->has('due_date'))
{{ $errors->first('due_date') }}
@endif
{{ trans('cruds.task.fields.due_date_helper') }}
{{ trans('cruds.task.fields.assigned_to') }}
@foreach($assigned_tos as $id => $entry)
assigned_to->id ?? '') == $id ? 'selected' : '' }}>{{ $entry }}
@endforeach
@if($errors->has('assigned_to'))
{{ $errors->first('assigned_to') }}
@endif
{{ trans('cruds.task.fields.assigned_to_helper') }}
{{ trans('global.save') }}
@endsection @section('scripts') @endsection