@extends('backend.layouts.admin') @section('main-content') Expense Types Add New Type Manage Expense Sr No. Type Department Status Action @forelse ($expense_types as $row) {{$row->id}} {{ucfirst($row->name)}} {{$row->department->name??''}} status==1?'checked':''}}> @empty No data found @endforelse {{$expense_types->links()}} Add Type × @csrf Name * @if ($errors->has('name')) {{ $errors->first('name') }} @endif Department * Select Department @foreach($departments as $row) id?'selected':''}} value="{{$row->id}}"> {{$row->name}} @endforeach @if ($errors->has('department')) {{ $errors->first('department')}} @endif Update Expense Type × @csrf Name * @if ($errors->has('name')) {{ $errors->first('name') }} @endif Department * Select Department @foreach($departments as $row) id?'selected':''}} value="{{$row->id}}"> {{$row->name}} @endforeach @if ($errors->has('department')) {{ $errors->first('department') }} @endif @endsection @push('scripts') @endpush