@extends('layouts.app') @section('title', $expense->date) @section('content')
@if ($errors->any()) @endif
{{ __('Expense') }}
@csrf @method('put')
@if($errors->has('date')) {{ $errors->first('date') }} @endif
@if($errors->has('type')) {{ $errors->first('type') }} @endif
@if($errors->has('to')) {{ $errors->first('to') }} @endif
@if($errors->has('payment_type')) {{ $errors->first('payment_type') }} @endif
payment_type == 'cash') style="display: none;" @endif>
@if($errors->has('payment_number')) {{ $errors->first('payment_number') }} @endif
@if($errors->has('quantity')) {{ $errors->first('quantity') }} @endif
@if($errors->has('amount')) {{ $errors->first('amount') }} @endif

@foreach($expense->items as $item)
@endforeach
@endsection @section('scripts') @endsection