@extends('layouts.default', ['appTopMenu' => true]) @php use Carbon\Carbon; @endphp @section('title','Dashboard') @push('scripts') @endpush @section('content')
@if (session('status'))
{!! session('status') !!}
@elseif(session('failed'))
{{ session('failed') }}
@endif @if(\Session::has('success'))
{{\Session::get('success')}}
@endif
Section Wise Report
{{ Form::open(array('name'=>'reportsHistoryForm','id'=>'reportsHistoryForm', 'url'=>'complaint_reports/section', 'class'=>'form-horizontal' ,'method' => 'POST')) }}
{!! Form::Label('From-Date', 'From Date') !!}
{{ $errors->first('from_date') }}
{!! Form::Label('To-Date', 'To Date') !!}
{{ $errors->first('to_date') }}
{!! Form::Label('Department-Name', 'Department Name') !!} {{ $errors->first('section') }}
{{ Form::close() }}
@if (!empty($search_results))

Data List

@foreach ($search_results as $data) @endforeach
Department Name : {{ Request::post('section')}} || FROM {{ Request::post('from_date') }}  TO {{ Request::post('to_date')}}
# Comp. No. Department Device Name Serial No. Company Person name Problem Complaint Date Completion Date Status Remark
{{ $loop->iteration }} {{ $data->complent_no }} {{ $data->deptement }} {{ $data->device }} {{ $data->sr_no }} {{ $data->company }} {{ $data->by_person }} {{ $data->problem }} {{ \Carbon\Carbon::parse($data->created_on)->format('d-m-Y H:i:s A') }} {{ \Carbon\Carbon::parse($data->comp_date)->format('d-m-Y H:i:s A') }} {{ $data->status }} {{ $data->remark }}
@endif
@endsection