@extends('layout.app') @section('content') Edit Expense See List {{-- 'model'=> $model --}} @method('put') @csrf Name* Expense Head* Select One @foreach ($expenseHead as $item) {{ $item->name }} @endforeach Employee Select One @foreach (getEmployesInExpense() as $item) id == $model->employee_id ? 'selected' : '' }}>{{ $item->name }} @endforeach Invoice Number* Date* Amount* Upload Documents @if (!empty($model->attach_document)) @php $isS3 = checkSettings('store_image_to_s3') === 'enable'; $imgUrl = $isS3 ? $model->attach_document // already full URL from S3 : asset('storage/expenseDocument/' . $model->attach_document); // local path @endphp @else No File @endif @if ($model->attach_document != null) @else @endif Description* {{ $model->description }} Update @endsection @push('script-bottom') @endpush
No File