@extends ('backend.layouts.app') @section ('title', 'Tools Update') @section('after-styles') @endsection @section('page-header')

Tools Management Tools Edit

@endsection @section('content') {{ Form::model($tool, ['route' => ['admin.modules.tool.update', $tool], 'enctype' => "multipart/form-data", 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'PATCH', 'id' => 'edit-tool']) }}

Edit Tool

@include('backend.modules.includes.partials.tool-header-buttons')
{{ Form::label('Image', 'Choose image', ['class' => 'col-lg-2 control-label']) }}
@if($tool->image) {{ Html::image('images/uploads/' . $tool->image, 'alt', ['style' => 'max-width: 150px; margin-bottom: 15px;']) }} @endif {{ Form::file('image', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Choose image']) }}
{{ Form::label('title', 'Title', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('title', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Enter title']) }}
{{ Form::label('description', 'Description', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('description', null, ['class' => 'form-control', 'id' => 'description', 'required' => 'required', 'placeholder' => 'Enter description']) }}
{{ Form::label('pdf_file', 'Choose New PDF File', ['class' => 'col-lg-2 control-label']) }}
@if($tool->pdf_file) Open PDF @endif {{ Form::file('pdf_file', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Choose image']) }}
{{ Form::label('publish_date', 'Publish Date', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('publish_date', null, ['class' => 'form-control', 'id' => 'datepicker', 'required' => 'required', 'placeholder' => 'Choose publish date']) }}
{{ Form::label('category', 'Select Category', ['class' => 'col-lg-2 control-label']) }}
{{ Form::label('subcategory', 'Select Subcategory', ['class' => 'col-lg-2 control-label']) }}
{{ Form::label('Active', 'Active', ['class' => 'col-lg-2 control-label']) }}
active ? 'checked' : '' }}/>
{{ link_to_route('admin.modules.tool.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-xs']) }}
{{ Form::submit(trans('buttons.general.crud.update'), ['class' => 'btn btn-success btn-xs']) }}
{{ Form::close() }} @endsection @section('after-scripts') @endsection