Company/Resources/views/_form.blade.php

137 lines
7.1 KiB
PHP

@php
$route = explode('.', Route::currentRouteName());
@endphp
<!--begin::Modal - New Target-->
<div class="modal fade" id="kt_modal_company" tabindex="-1" aria-hidden="true">
<!--begin::Modal dialog-->
<div class="modal-dialog modal-fullscreen">
<!--begin::Modal content-->
<div class="modal-content rounded">
<!--begin::Modal header-->
<div class="modal-header pb-0 border-0 justify-content-end">
<!--begin::Close-->
<div class="btn btn-sm btn-icon btn-active-color-primary"
data-bs-dismiss="modal">{!! getIcon('cross', 'fs-1') !!}</div>
<!--end::Close-->
</div>
<!--begin::Modal header-->
<!--begin::Modal body-->
<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
<!--begin:Form-->
<form class="form_{{$route[0]}}" method="POST"
action="{{ route($route[0].'.store') }}">
@csrf
<!--begin::Heading-->
<div class="mb-13 text-center">
<!--begin::Title-->
<h1 class="mb-3 text-capitalize"
id="title_form">{{ str_replace('-',' ',$route[0]) }}</h1>
<!--end::Title-->
</div>
<!--end::Heading-->
<div class="d-flex flex-row flex-column-fluid">
<!--begin::Input group-->
<div class="d-flex flex-row-fluid flex-column mb-8 fv-row me-4">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span class="required">Name</span>
</label>
<!--end::Label-->
<input type="hidden" id="company_id" name="id"/>
<input type="text" required id="company_name" maxlength="50" class="form-control form-control-solid"
placeholder="Enter Company Name" name="name"/>
</div>
<!--end::Input group-->
<!--begin::Input group-->
<div class="d-flex flex-row-fluid flex-column mb-8 fv-row ms-4">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span class="required">Company Type</span>
</label>
<!--end::Label-->
<select name="company_type" required id="company_type" class="form-select form-select-solid">
<option value="PKP">PKP</option>
<option value="Non PKP">Non PKP</option>
</select>
</div>
<!--end::Input group-->
</div>
<!--begin::Input group-->
<div class="d-flex flex-column mb-8 fv-row">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span class="required">NPWP</span>
</label>
<!--end::Label-->
<input type="text" id="company_npwp" maxlength="50" required class="form-control form-control-solid"
placeholder="Enter Company NPWP" name="npwp"/>
</div>
<!--end::Input group-->
<div class="d-flex flex-row flex-column-fluid">
<!--begin::Input group-->
<div class="d-flex flex-row-fluid flex-column mb-8 fv-row me-4">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span>Email</span>
</label>
<!--end::Label-->
<input type="email" id="company_email" maxlength="50" class="form-control form-control-solid"
placeholder="Enter Company Email" name="email"/>
</div>
<!--end::Input group-->
<!--begin::Input group-->
<div class="d-flex flex-row-fluid flex-column mb-8 fv-row mx-4">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span>Phone</span>
</label>
<!--end::Label-->
<input type="number" id="company_phone" maxlength="50" class="form-control form-control-solid"
placeholder="Enter Company Phone" name="phone"/>
</div>
<!--end::Input group-->
<!--begin::Input group-->
<div class="d-flex flex-row-fluid flex-column mb-8 fv-row ms-4">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span>Website</span>
</label>
<!--end::Label-->
<input type="text" id="company_website" maxlength="50" class="form-control form-control-solid"
placeholder="Enter Company Website" name="website"/>
</div>
<!--end::Input group-->
</div>
<!--begin::Input group-->
<div class="d-flex flex-column mb-8 fv-row">
<!--begin::Label-->
<label class="d-flex align-items-center fs-6 fw-semibold mb-2">
<span class="required">Address</span>
</label>
<!--end::Label-->
<textarea rows="3" id="company_address" maxlength="50" class="form-control form-control-solid"
placeholder="Enter Company Address" name="address"></textarea>
</div>
<!--end::Input group-->
<!--begin::Actions-->
<div class="text-center">
<button type="reset" data-bs-dismiss="modal" class="btn btn-light me-3">Cancel</button>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
<!--end::Actions-->
</form>
<!--end:Form-->
</div>
<!--end::Modal body-->
</div>
<!--end::Modal content-->
</div>
<!--end::Modal dialog-->
</div>
<!--end::Modal - New Target-->
@