@php $statuses = [ '0' => ['label' => 'Requested', 'class' => 'info'], '1' => ['label' => 'Approved', 'class' => 'success'], '2' => ['label' => 'Rejected', 'class' => 'danger'], '3' => ['label' => 'Paid', 'class' => 'primary'], '4' => ['label' => 'Cancelled', 'class' => 'danger'], ]; $status = $statuses[$officeExpense->status] ?? ['label' => '', 'class' => '']; $disabled = in_array($officeExpense->status, ['0', '1', '2', '3']) ? 'disabled' : ''; @endphp @extends('admin.layouts.layouts') @section('title', 'Details | Office Expense') @section('page-css') @endsection @section('content') {{-- Change status modal --}} {{-- Expense Details --}}
Location:
{{ $officeExpense->location?->name ?? '-' }}
{{--
Expense Period:
{{ date('d-m-Y', strtotime($officeExpense->from)) }} To {{ date('d-m-Y', strtotime($officeExpense->to)) }}
--}}
Employee Name:
{{ $officeExpense->createdBy->name ?? '-' }}
Status:
{{ $status['label'] }}
@if ($officeExpense->status == '3')
Voucher No.:
{{ $officeExpense->voucher_no ?? '' }}
@endif
Requested Amount:
{{ $officeExpense->total_amount ?? 0 }}
@if (in_array($officeExpense->status, ['1', '3']))
Paid Amount:
Payment Mode:
{{ ucfirst($officeExpense->payment_mode) ?? '-' }}
@endif @if (strtolower($officeExpense->payment_mode) == 'online' && isset($officeExpense->bank))
Bank:
{{ $officeExpense->bank?->name ?? '' }} ({{ $officeExpense->bank?->account_no ?? '' }})
@endif
{{-- Expense Items --}}
Office Expense Items
{{-- --}} {{-- --}}
# Type Sub Type AmountPayment ModeDocumentDateRemark
{{-- Expense Histories --}}
Office Expense History
# Status Remark Action Date Action By
@endsection @section('page-js') @endsection