@extends('layouts.app') @section('content')
{{ __('FILE UPDATE') }}
{{--
@csrf --}} {!! Form::open(array('route' => ['filearchives.update', $filearchive->id], 'method' => 'PUT', 'role' => 'form', 'enctype'=>'multipart/form-data')) !!} {!! csrf_field() !!}
{{-- --}} {!! Form::label('', 'File Title', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
@error('title') {{ $message }} @enderror
{!! Form::label('', 'File Category', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
@error('category_id') {{ $message }} @enderror
{!! Form::label('', 'File Mode', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
@error('file_mode') {{ $message }} @enderror
{!! Form::label('', 'Add File', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
{!! Form::file('file_path', array('id' => 'file_path', 'disabled' => 'disabled','class' => "form-control", 'accept' => 'image/*,.pdf,.docx')) !!} @error('file_path') {{ $message }} @enderror
{!! Form::label('', 'Publish Date', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
{{-- {!! Form::date('publish_date', date('Y-m-d'), array('id' => 'publish_date', 'class' => "form-control {{$errors->has('publish_date') ? 'is-invalid' : '' }}", 'required' => 'required', )) !!} --}} {!! Form::date('publish_date', date('Y-m-d', strtotime($filearchive->publish_date)), array('id' => 'publish_date', 'class' => "form-control", 'required' => 'required', )) !!} @error('publish_date') {{ $message }} @enderror
{!! Form::label('', 'Short Note', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
{!! Form::textarea('remarks', $filearchive->remarks, array('id' => 'remarks', 'class' => 'form-control', 'rows' => '2',)) !!} @error('remarks') {{ $message }} @enderror
{!! Form::label('', 'Publish', array('class' => 'col-md-2 col-form-label text-md-end')) !!}
{{-- {!! Form::checkbox('status', 1 , true , ['id' => 'status', 'class' => 'form-control form-check-input']) !!} --}} status == 1 ? 'checked' : ''}}>
{{--
--}}
{!! Form::close() !!} {{-- --}}
@endsection