Raffales-LMS/resources/views/crud/generated/branches/edit.blade.php

82 lines
3.9 KiB
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
@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">Edit Branch</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
<li class="breadcrumb-item active">Edit Branch</li>
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<form action="{{route('branches.update',[$data->branch_id])}}" id="updateCustomForm" method="POST" >
@csrf <input type=hidden name='branch_id' value='{{$data->branch_id}}'/>
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-lg-12">{{createText("title","title","Title",'',$data->title)}}</div>
<div class="border border-dashed"></div>
<div class="col-lg-12 pb-2">
{{createTextarea("description","description ckeditor-classic","Description",$data->description)}}
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Company Register No.</h4>
</div>
<div class="card-body">
<div class="col-lg-12">
{{createText("company_reg","company_reg","",'',$data->company_reg)}}
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title mb-0">Contact Informations</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-lg-6">
{{createText("email","email","Email",'',$data->email)}}
</div>
<div class="col-lg-6">
{{createText("telephone","telephone","Telephone",'',$data->telephone)}}
</div><div class="col-lg-6">
{{createText("phone1","phone1","Phone1",'',$data->phone1)}}
</div><div class="col-lg-6">
{{createText("phone2","phone2","Phone2",'',$data->phone2)}}
</div><div class="col-lg-12">
{{createText("address","address","Address",'',$data->address)}}
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12"> <?php createButton("btn-primary btn-update","","Update"); ?>
<?php createButton("btn-danger btn-cancel","","Cancel",route('branches.index')); ?>
</div>
</div>
</form>
</div>
@endsection