TanchoToplineCargo/resources/views/crud/generated/services/edit.blade.php

42 lines
1.9 KiB
PHP
Raw Permalink Normal View History

2024-05-05 04:47:49 +00:00
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Services') }}</h2>
</div>
<div class='card-body'>
<form action="{{ route('services.update', [$data->service_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='service' value='{{ $data->service }}' />
<div class="row">
<div class="col-lg-12">
{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-12">
{{ createCustomSelect('tbl_services', 'title', 'service_id', $data->parent_service, 'Parent Service', 'parent_service', 'form-control select2', 'status<>-1') }}
</div>
<div class="col-lg-12">
{{ createText('sub_text', 'sub_text', 'Short Desc for Home Page', '', $data->sub_text) }}
</div>
<div class="cl-lg-6">
{{ createText('icon', 'icon', 'Icon', '', $data->icon) }}
</div>
<div class="col-lg-6">
{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}
</div>
<div class="col-lg-12">
{{ createTextarea('text', 'text ckeditor-classic', 'Service Desciption', $data->text) }}
</div>
<div class="col-md-12 mt-2">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-danger', '', 'Cancel', route('services.index')); ?>
</div>
</form>
</div>
</div>
@endsection