New-OMIS/resources/views/crud/generated/rolepermissions/edit.blade.php

16 lines
1.3 KiB
PHP
Raw Normal View History

2024-04-05 05:22:15 +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('Add Rolepermissions') }}</h2>
<?php createButton("btn-primary btn-cancel","","Cancel",route('rolepermissions.index')); ?>
</div>
<div class='card-body'>
<form action="{{$editable?route('rolepermissions.update',[$data->rolepermission_id]):route('rolepermissions.store')}}" id="updateCustomForm" method="POST" >
@csrf <input type=hidden name='rolepermission_id' value='{{$editable?$data->rolepermission_id:''}}'/>
<div class="row"><div class="col-lg-6">{{createCustomSelect('tbl_roles', 'title', 'role_id', $editable?$data->roles_id:'', 'Roles Id','roles_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_permissions', 'title', 'permission_id', $editable?$data->permissions_id:'', 'Permissions Id','permissions_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-12 pb-2">{{createPlainTextArea("remarks",'',"Remarks",$editable?$data->remarks:'')}}
</div> <div class="col-md-12"><?php createButton("btn-primary btn-update","","Submit"); ?>
<?php createButton("btn-primary btn-cancel","","Cancel",route('rolepermissions.index')); ?>
</div> </form></div></div>
@endsection