160 lines
5.7 KiB
PHP
160 lines
5.7 KiB
PHP
|
|
@extends('layouts.app')
|
||
|
|
|
||
|
|
@section('title')
|
||
|
|
{{ $pageInfo['title'] }}
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@section('admin-content')
|
||
|
|
<section class="content-header">
|
||
|
|
<div class="container-fluid">
|
||
|
|
<div class="row mb-2">
|
||
|
|
<div class="col-sm-6">
|
||
|
|
<h1>{{ $pageInfo['title'] }}</h1>
|
||
|
|
</div>
|
||
|
|
<div class="col-sm-6">
|
||
|
|
<ol class="breadcrumb float-sm-right">
|
||
|
|
<li class="breadcrumb-form"><a href="{{ route('admin.dashboard') }}">{{ __('Dashboard') }}</a> / </li>
|
||
|
|
<li class="breadcrumb-form active"> {{ $pageInfo['title'] }}</li>
|
||
|
|
</ol>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="row mt-4">
|
||
|
|
<div class="col-md-12">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body">
|
||
|
|
<form action="{{ route('reports.meeting') }}" method="GET">
|
||
|
|
<div class="d-flex">
|
||
|
|
<div class="col-md-3">
|
||
|
|
<div class="form-group mb-3">
|
||
|
|
<label for="cabang">Pilih Cabang</label>
|
||
|
|
<select name="cabang" id="cabang" class="form-control">
|
||
|
|
<option value="">Semua Cabang</option>
|
||
|
|
@foreach ($cabang as $cabang)
|
||
|
|
<option value="{{ $cabang->code }}" {{ request()->cabang == $cabang->code ? 'selected' : '' }}>
|
||
|
|
{{ $cabang->name }}
|
||
|
|
</option>
|
||
|
|
@endforeach
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-3">
|
||
|
|
<div class="form-group mb-3">
|
||
|
|
<label for="status">Start Date</label>
|
||
|
|
<input type="date" name="start_date" class="form-control" value="{{ request()->start_date }}">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-3">
|
||
|
|
<div class="form-group mb-3">
|
||
|
|
<label for="status">End Date</label>
|
||
|
|
<input type="date" name="end_date" class="form-control" value="{{ request()->end_date }}">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-3">
|
||
|
|
<div class="form-group mb-3">
|
||
|
|
<label for="status">Status</label>
|
||
|
|
<select name="status" id="status" class="form-control">
|
||
|
|
<option value="">Semua Status</option>
|
||
|
|
<option value="On Progress" {{ request()->status == 'On Progress' ? 'selected' : '' }}>On Progress</option>
|
||
|
|
<option value="Approved" {{ request()->status == 'Approved' ? 'selected' : '' }}>Approved</option>
|
||
|
|
<option value="Closed" {{ request()->status == 'Closed' ? 'selected' : '' }}>Closed</option>
|
||
|
|
<option value="Rejected" {{ request()->status == 'Rejected' ? 'selected' : '' }}>Rejected</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-3">
|
||
|
|
{{-- submit button --}}
|
||
|
|
<div class="form-group">
|
||
|
|
<button type="submit" class="btn btn-primary">Filter</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
@php
|
||
|
|
use App\Helpers\NextCloudHelper;
|
||
|
|
@endphp
|
||
|
|
|
||
|
|
<section class="content">
|
||
|
|
<div class="container-fluid">
|
||
|
|
<!-- Form Meeting & Seminar Table -->
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-12">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body">
|
||
|
|
<h4 class="header-title">Form Meeting & Seminar</h4>
|
||
|
|
<div class="data-tables">
|
||
|
|
@include('backend.layouts.partials.messages')
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table id="dataTable-table">
|
||
|
|
<thead class="bg-light text-capitalize">
|
||
|
|
<tr>
|
||
|
|
<th>#</th>
|
||
|
|
<th>No Expense</th>
|
||
|
|
<th>Nama</th>
|
||
|
|
<th>Cabang</th>
|
||
|
|
<th>Tanggal</th>
|
||
|
|
<th>Allowance</th>
|
||
|
|
<th>Transport Ankot</th>
|
||
|
|
<th>Hotel</th>
|
||
|
|
<th>Total</th>
|
||
|
|
<th>Total Approved</th>
|
||
|
|
<th>Account Number</th>
|
||
|
|
<th>Status</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
@foreach ($forms as $item)
|
||
|
|
<tr>
|
||
|
|
<td>{{ $loop->iteration }}</td>
|
||
|
|
<td>{{ $item->expense_number }}</td>
|
||
|
|
<td>{{ $item->user->name }}</td>
|
||
|
|
<td>{{ $item->user->cabang->cabang->name }}</td>
|
||
|
|
<td>{{ \Carbon\Carbon::parse($item->created_at)->locale('id')->isoFormat('D MMMM Y') }}</td>
|
||
|
|
<td>{{ number_format($item->allowance, 0, ',', '.') }}</td>
|
||
|
|
<td>{{ number_format($item->transport_ankot, 0, ',', '.') }}</td>
|
||
|
|
<td>{{ number_format($item->hotel, 0, ',', '.') }}</td>
|
||
|
|
<td>{{ number_format($item->total, 0, ',', '.') }}</td>
|
||
|
|
<td>{{ number_format($item->approved_total, 0, ',', '.') }}</td>
|
||
|
|
<td>{{ $item->account_number }}</td>
|
||
|
|
<td>
|
||
|
|
@if ($item->status == 'On Progress')
|
||
|
|
<span class="badge badge-warning text-white">{{ $item->status }}</span>
|
||
|
|
@elseif ($item->status == 'Approved' || $item->status == 'Final Approved')
|
||
|
|
<span class="badge badge-success text-white">{{ $item->status }}</span>
|
||
|
|
@else
|
||
|
|
<span class="badge badge-danger text-white">{{ $item->status }}</span>
|
||
|
|
@endif
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
@endforeach
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@section('scripts')
|
||
|
|
<script>
|
||
|
|
if ($('#dataTable-table').length) {
|
||
|
|
$('#dataTable-table').DataTable({
|
||
|
|
responsive: false,
|
||
|
|
dom: 'Bfrtip',
|
||
|
|
buttons: ['excel', 'pdf', 'print', 'colvis'],
|
||
|
|
});
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
@endsection
|