New-OMIS/resources/views/crud/form/create.blade.php

40 lines
1.1 KiB
PHP
Raw Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
2024-04-05 05:22:15 +00:00
@section('content')
2024-04-07 07:28:58 +00:00
<div class="nk-content">
<div class="container-fluid">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="nk-content-inner">
<form method="get" action="{{ route('form.store') }}" enctype="multipart/form-data">
{{ Label('Operation') }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
{{ customCreateSelect('type', 'type', '', '', ['ajax-curd' => 'Ajax CURD']) }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
{{ Label('Table Name') }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
{{ customCreateSelect('tableName', 'tableName', 'form-control custom-select2', '', $allTables) }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
{{ Label('Write To') }}
{{ createText('directoryName', 'directoryName', 'Directory Name') }}
<?php createButton('mt-3 btn-primary', '', 'Submit'); ?>
</form>
</div>
2024-04-05 05:22:15 +00:00
</div>
2024-04-07 07:28:58 +00:00
</div>
2024-04-05 05:22:15 +00:00
@endsection
@push('js')
2024-04-07 07:28:58 +00:00
<script>
$(document).ready(function() {
$('.custom-select2').select2();
});
</script>
2024-04-05 05:22:15 +00:00
@endpush