@extends('fronted.layout.main') @section('adcontent')
@if ($message = Session::get('success')) @php session()->forget('success'); @endphp @endif @if ($message = Session::get('warning')) @php session()->forget('warning'); @endphp @endif @if ($message = Session::get('danger')) @php session()->forget('danger'); @endphp @endif
@php $data = DB::table('expenses')->get(); @endphp @csrf
Date Item Name Quantity Rate Amount Payment Type Upload Bill Action

@error('quantity'){{$message}}@enderror

@error('amount'){{$message}}@enderror

Grand Total: ₹ {{ $totalAmount }}
@php $count = 0; @endphp @foreach($expense as $temp) @php($count++) @endforeach
S.No. Date Item Name Quantity Rate Amount Payment Type Uploaded Bill Action
{{$count}} {{ date('d-M-Y', strtotime($temp->billdate)) }} {{$temp->itemname}} {{$temp->quantity}} ₹ {{$temp->rate}} ₹ {{$temp->amount}} {{$temp->paymentmode}} @if($temp->uploadbill) @else @endif
  • @csrf