TanchoToplineCargo/resources/views/crud/generated/otherarticles/edit.blade.php
2024-05-05 10:32:49 +05:45

60 lines
3.1 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">{{ label('Edit Article') }}</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Home</a></li>
<li class="breadcrumb-item active">{{ label('Edit Article') }}</li>
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<form action="{{route('otherarticles.update',[$data->article_id])}}" id="updateCustomForm" method="POST" >
@csrf <input type=hidden name='article_id' value='{{$data->article_id}}'/>
<div class="row">
<div class="col-lg-9">
<div class="card">
<div class="card-body">
<div class="col-lg-12">{{createText("title","title","Title",'',$data->title)}}</div>
<div class="col-lg-12 pb-2">{{createTextarea("text","text ckeditor-classic","Text",$data->text)}}</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Parent Article</h5>
</div>
<div class="card-body">
<div class="col-lg-12">{{createCustomSelect('tbl_otherarticles', 'title', 'article_id', $data->parent_article, 'Parent Article','parent_article', 'form-control select2','status<>-1')}}</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Featured Image</h5>
</div>
<div class="card-body">
<div class="col-lg-12 pb-2" >{{createImageInput("cov er_phot o","Cover Photo",'',$data->cover_photo)}}</div>
</div>
</div>
<div class="col-md-12"><?php createButton("btn-primary btn-update","","Update"); ?>
<?php createButton("btn-danger btn- cancel","","Cancel",route('otherarticles.index')); ?>
</div>
</div>
</div>
</form>
@endsection