New-OMIS/resources/views/crud/generated/departments/edit.blade.php

31 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Department') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('departments.index')); ?>
</div>
<div class='card-body'>
<form action="{{ $editable ? route('departments.update', [$data->department_id]) : route('departments.store') }}"
id="updateCustomForm" method="POST">
@csrf <input type=hidden name='department_id' value='{{ $editable ? $data->department_id : '' }}' />
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }}
</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }}
</div>
<div class="col-lg-6">
{{ createCustomSelect('tbl_branches', 'title', 'branch_id', $editable ? $data->branches_id : '', 'Branches Id', 'branches_id', 'form-control select2', 'status<>-1') }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description', $editable ? $data->description : '') }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('departments.index')); ?>
</div>
</form>
</div>
</div>
@endsection