@extends('boothagent.layout.app') @section('title','Requirement - Index') @push('headerscript') @endpush @section('content')

Requirement

Add Requirement
@foreach($requirement as $r) @php $udetails=App\Models\UserDetail::where('user_id',$r->id)->first(); @endphp @php $vidhansabha=App\Models\VidhanSabha::where('id',$r->vidhansabha_id)->value('vidhansabha'); @endphp @php $category=App\Models\Category::where('id',$r->category_id)->value('category_name'); @endphp @php $user=App\Models\User::where('id',$r->user_id)->value('name'); @endphp @php $name=App\Models\User::where('id',$r->creator_id)->value('name'); @endphp @endforeach
S.NO. Category Name User Name Quantity Date Remark creator Action
{{ $loop->iteration }} {{ $vidhansabha}} {{ $category}} {{ $user}} {{ $r->quantity}} {{ date('d-m-Y', strtotime($r->date)) }} {{ $r->remark}} {{ $name }} Edit Delete
@endsection @push('footerscript') @endpush