master_template/resources/views/crud/generated/videos/edit.blade.php
2024-06-18 11:31:51 +05:45

26 lines
1.3 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 Videos') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('videos.update', [$data->video_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='video_id' value='{{ $data->video_id }}' />
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-6">{{ createText('video_url', 'video_url', 'Video Url', '', $data->video_url) }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('image', 'Image', '', $data->image) }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
</form>
</div>
</div>
@endsection