@extends('layout.app') @section('css') @endsection @section('content') Expense List {{-- Expense Head List --}} Expense Type Expense # Status {{-- Income Head --}} Name Expense Head Employee Invoice Number Date Amount Documents Description Create By Action @foreach ($expenses as $row) {{ $row->id }} @if ($row->status == 'pending') Pending @elseif($row->status == 'approved') Approved @endif {{ $row->name }} {{ $row->head->name ?? '' }} {{ $row->employee->name ?? '' }} {{ $row->invoice_number }} {{ date('d/m/Y', strtotime($row->date)) }} {{ $row->amount }} @if (!empty($row->attach_document)) {{-- --}} @else No File @endif {{ $row->description }} {{ $row->admin->name ?? '' }} Action @can('expense-section') @if (!in_array($row->head->id, [6])) @if ($row->status != 'approved') @can('expense-approve') @csrf @method('post') Approve @endcan Edit History @csrf @method('DELETE') Delete @else No Action available @endif @endif @endcan @endforeach Add Expense × @csrf Expense Title* Expense Head* Select One @foreach ($expenseHead as $item) {{ $item->name }} @endforeach Select Employee Select Employee @foreach ($employes as $employee) {{ $employee->name }} @endforeach Invoice Number Date* {{-- --}} {{-- Date* --}} Amount* Attach Document Description @endsection @section('ajax') {{-- --}} @endsection
No File