@extends('Admin/layout') @section('title','Admin Invoice List') @section('header') @parent @endsection @section('navigation') @parent @endsection @section('content')
@if ($errors->has('month'))

{{ $errors->first('month') }}

@endif

@if(!empty($lists)) @foreach($lists as $key => $value) @php $imagedisplay = ""; $extension = explode('.',$value->pdf_url)[1]; $all_extension_name = array("jpeg", "png", "jpg", "gif"); $all_pdf_extension_name = array("pdf"); $path = env('APP_URL').'/'.$value->pdf_url; $months = ['January','February','March','April','May','June','July','August','September','October','November','December']; @endphp @endforeach @endif
Created Date Account Name Month/Year Image File Name Uploaded by Status Action
{{$value->created_at}} {{$value->username}} {{$value->user_name}} {{$months[$value->month - 1 ]}} {{$value->year}} @if(in_array(strtolower($extension), $all_extension_name))    @elseif(in_array(strtolower($extension), $all_pdf_extension_name))    @else

@endif
{{$value->actual_file_name}} {{$value->uploded_by}} @if($value->status == 'Approved') {{$value->status}} @endif @if($value->status == 'Rejected') {{$value->status}} @endif @if($value->status == 'Pending') {{$value->status}} @endif
@endsection @section('footer') @parent @endsection