@extends('fronted.layout.main') @section('adcontent') @if ($message = Session::get('recordssuccess')) @endif @if ($message = Session::get('danger')) @endif @if ($message = Session::get('image')) @endif @if ($message = Session::get('termsconditions')) @endif @if ($message = Session::get('terms')) @endif
@csrf
@php $customTerms = DB::table('termsandconditions')->where('type', 'custom')->get(); @endphp @foreach($customTerms as $index => $term) @endforeach
S.No Terms & Conditions Action
{{ $index + 1 }} {{ $term->termsandconditions }}
@csrf
@csrf
@php $terms = DB::table('termsandconditions')->where("type","reg")->get(); @endphp @foreach($terms as $index => $temp) @endforeach
S.No Terms & Conditions Action
{{$index + 1}} {{$temp->termsandconditions}}
@csrf
@csrf
@php $terms = DB::table('termsandconditions')->where('type','estimation')->get(); @endphp @foreach($terms as $index => $temp) @endforeach
S.No Terms & Conditions Action
{{$index + 1}} {{$temp->termsandconditions}}
@csrf
@csrf
@php $documents = DB::table('uploadprofiles')->get(); $documentSNo = 1; @endphp @if($documents) @foreach($documents as $doc) @endforeach @endif
S No Documents Name View
{{$documentSNo++}} {{$doc->upload_name !== 'T&C_for_emp' ?$doc->upload_name:'Employe T&C'}} @if(file_exists(public_path('assets/uploads/pdf/'. $doc->upload_pdf))) @if(pathinfo($doc->upload_pdf, PATHINFO_EXTENSION) == 'pdf') View PDF @elseif(in_array(pathinfo($doc->upload_pdf, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif'])) View Image @else {{$doc->upload_pdf}} @endif @else

Document Not Found

@endif
@endsection