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

41 lines
1.7 KiB
PHP

@extends('backend.template')
@section('content')
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">Edit Agent</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
<li class="breadcrumb-item active">Edit Agent</li>
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<form action="{{route('agents.update',[$data->agent_id])}}" id="updateCustomForm" method="POST" >
@csrf <input type=hidden name='agent_id' value='{{$data->agent_id}}'/>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-12">{{createText("title","title","Title",'',$data->title)}}</div>
<div class="border border-dashed"></div>
<div class="col-lg-12 pb-4">{{createTextarea("description","description ckeditor-classic","Description",$data->description)}}</div>
<div class="border border-dashed"></div>
<div class="col-lg-12 pb-2">{{createPlainTextArea("remarks",'',"Remarks",$data->remarks)}}</div>
</div>
</div>
<div class="card-footer">
<div class="col-md-12">
<?php createButton("btn-primary btn-update","","Update"); ?>
<?php createButton("btn-danger btn-cancel","","Cancel",route('agents.index')); ?>
</div>
</div>
</div>
</div>
</form>
@endsection