tambah form di surveyor
This commit is contained in:
@@ -148,15 +148,58 @@
|
||||
</div>
|
||||
|
||||
<div class="card min-w-full py-2 px-2">
|
||||
{{-- <div class="card-header">
|
||||
<h3 class="card-title">
|
||||
Data Jaminan
|
||||
</h3>
|
||||
</div> --}}
|
||||
<div class="card-header" id="basic_settings">
|
||||
<div class="card-title flex flex-row gap-1.5">
|
||||
<a href="{{ route('surveyor.show',array_merge(request()->query(),['id'=>$surveyor])) }}" class="btn btn-xs {{ request()->routeIs('surveyor.show') ? 'btn-outline btn-primary' : 'btn-light' }}" class="btn btn-xs btn-outline btn-primary">FORM INSPEKSI</a>
|
||||
|
||||
<div class="flex flex-col gap-5 lg:gap-7.5">
|
||||
|
||||
<a href="{{ route('surveyor.denah',array_merge(request()->query(),['id'=>$surveyor])) }}" class="btn btn-xs {{ request()->routeIs('surveyor.denah') ? 'btn-outline btn-primary' : 'btn-light' }}" class="btn btn-xs btn-outline btn-primary">DENAH TANAH DAN BANGUNAN</a>
|
||||
|
||||
<a href="{{ route('surveyor.foto',array_merge(request()->query(),['id'=>$surveyor])) }}" class="btn btn-xs {{ request()->routeIs('surveyor.foto') ? 'btn-outline btn-primary' : 'btn-light' }}" class="btn btn-xs btn-outline btn-primary">FOTO</a>
|
||||
|
||||
<a href="{{ route('surveyor.data-pembanding',array_merge(request()->query(),['id'=>$surveyor])) }}" class="btn btn-xs {{ request()->routeIs('surveyor.data-pembanding') ? 'btn-outline btn-primary' : 'btn-light' }}" class="btn btn-xs btn-outline btn-primary">DATA PEMBANDING</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if(request()->routeIs('surveyor.show',$surveyor))
|
||||
@include('lpj::surveyor.components.form-inspeksi')
|
||||
|
||||
@elseif(request()->routeIs('surveyor.denah',$surveyor))
|
||||
|
||||
@include('lpj::surveyor.components.denah')
|
||||
|
||||
@elseif(request()->routeIs('surveyor.foto', $surveyor))
|
||||
@include('lpj::surveyor.components.foto')
|
||||
|
||||
@elseif(request()->routeIs('surveyor.data-pembanding', $surveyor))
|
||||
|
||||
@include('lpj::surveyor.components.data-pembanding')
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex justify-end gap-2" style="margin-right: 20px; margin-top: 20px">
|
||||
<button type="submit" class="btn btn-success">
|
||||
Save
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Submit
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script>
|
||||
$('.card-title a').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var url = $(this).attr('href');
|
||||
|
||||
$.get(url, function(response) {
|
||||
$('.card-body').html(response);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user