Raffales-LMS/resources/views/crud/generated/institutions/edit.blade.php
2024-04-16 15:43:24 +05:45

24 lines
2.0 KiB
PHP

@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Institutions') }}</h2>
<?php createButton("btn-primary btn-cancel","","Cancel",route('institutions.index')); ?>
</div>
<div class='card-body'>
<form action="{{route('institutions.update',[$data->institution_id])}}" id="updateCustomForm" method="POST" >
@csrf <input type=hidden name='institution_id' value='{{$data->institution_id}}'/>
<div class="row"><div class="col-lg-6">{{createCustomSelect('tbl_institutiontypes', 'title', 'institutiontype_id', $data->institutiontypes_id, 'Institutiontypes Id','institutiontypes_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_countries', 'title', 'country_id', $data->countries_id, 'Countries Id','countries_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createText("title","title","Title",'',$data->title)}}
</div><div class="col-lg-12 pb-2">{{createTextarea("description","description ckeditor-classic","Description",$data->description)}}
</div><div class="col-lg-6">{{createText("state","state","State",'',$data->state)}}
</div><div class="col-lg-6">{{createText("city","city","City",'',$data->city)}}
</div><div class="col-lg-6">{{createText("address","address","Address",'',$data->address)}}
</div><div class="col-lg-6">{{createText("contact","contact","Contact",'',$data->contact)}}
</div><div class="col-lg-12 pb-2">{{createImageInput("logo","Logo",'',$data->logo)}}
</div><div class="col-lg-12 pb-2">{{createImageInput("thumb","Thumb",'',$data->thumb)}}
</div><div class="col-lg-12 pb-2">{{createPlainTextArea("remarks",'',"Remarks",$data->remarks)}}
</div> <div class="col-md-12"><?php createButton("btn-primary btn-update","","Submit"); ?>
<?php createButton("btn-primary btn-cancel","","Cancel",route('institutions.index')); ?>
</div> </form></div></div>
@endsection