New-OMIS/Modules/Admin/resources/views/nationalities/edit.blade.php

41 lines
1.3 KiB
PHP
Raw Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
@section('content')
2024-04-10 12:21:18 +00:00
<div class="page-content">
<div class="container-fluid">
2024-04-05 05:22:15 +00:00
2024-04-10 12:21:18 +00:00
<!-- start page title -->
2024-04-11 10:59:09 +00:00
@include('layouts.partials.breadcrumb', ['title' => 'Nationality'])
2024-04-10 12:21:18 +00:00
<!-- end page title -->
2024-04-11 10:59:09 +00:00
2024-04-10 12:21:18 +00:00
<div class='card'>
<div class='card-body'>
2024-04-11 10:59:09 +00:00
<form
action="{{ $editable ? route('nationalities.update', [$data->nationality_id]) : route('nationalities.store') }}"
2024-04-10 12:21:18 +00:00
id="updateCustomForm" method="POST">
@csrf
2024-04-11 10:59:09 +00:00
<input type=hidden name='nationality_id' value='{{ $editable ? $data->nationality_id : '' }}' />
2024-04-10 12:21:18 +00:00
<div class="row">
2024-04-11 10:59:09 +00:00
<div class="col-lg-12">
2024-04-10 12:21:18 +00:00
{{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }}
</div>
<div class="col-md-12 mt-2">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
2024-04-11 10:59:09 +00:00
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('nationalities.index')); ?>
2024-04-10 12:21:18 +00:00
</div>
2024-04-11 10:59:09 +00:00
</div>
2024-04-10 12:21:18 +00:00
</form>
</div>
</div>
2024-04-11 10:59:09 +00:00
@endsection