StocksNew/Modules/Leave/resources/views/leave/show.blade.php

82 lines
3.1 KiB
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Employee Name</span></th>
<td>{{ ($leave->employee)->first_name }} {{ ($leave->employee)->middle_name }} {{ ($leave->employee)->last_name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Type</span></th>
<td> {{ optional($leave->leaveType)->name }} </td>
</tr>
<tr>
<th><span class="fw-medium">Start Date</span></th>
<td>{{ $leave->start_date }}</td>
</tr>
<tr>
<th><span class="fw-medium">End Date</span></th>
<td>{{ $leave->end_date }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved Date</span></th>
<td>{{ $leave->leave_approved_date }}</td>
</tr>
<tr>
<th><span class="fw-medium">Total Days</span></th>
<td>{{ $leave->total_days}}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved By</span></th>
<td>{{ $leave->leave_approved_by}}</td>
</tr>
<tr>
<th><span class="fw-medium">Duration</span></th>
<td>{{ $leave->getDuration() }}</td>
</tr>
<tr>
<th><span class="fw-medium">Leave Approved Date</span></th>
<td>{{ $leave->employee_id }}</td>
</tr>
<tr>
<th><span class="fw-medium">Status</span></th>
<td>{{ $leave->status_name['status'] }}</td>
</tr>
<tr>
<th><span class="fw-medium">Description</span></th>
<td>{{ $leave->description }}</td>
</tr>
<tr>
<th><span class="fw-medium">Remark</span></th>
<td>{{ $leave->remarks }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('leave.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush