@extends('admin.layouts.container') @section('content')

{{ $head ?? ''}}

@php $date1 = strtotime($new->date); $date2 = strtotime(date('y-m-d')); // Formulate the Difference between two dates $diff = abs($date2 - $date1); $years = floor($diff / (365*60*60*24)); @endphp
@if(!is_null($new->field_id))
@else
@endif @if(!is_null($new->type_id))
@endif
@if(!is_null($new->image))
@php $file = explode('.',$new->image); @endphp @if($file[1] == 'pdf' || $file[1] == 'mp4') @else @endif
@if(!($file[1] == 'pdf' || $file[1] == 'mp4')) @endif
@endif @if(!is_null($new->file))
@php $file = explode('.',$new->file); @endphp @if($file[1] == 'pdf' || $file[1] == 'mp4') @else @endif
@if(!($file[1] == 'pdf' || $file[1] == 'mp4')) @endif
@endif @if(!is_null($new->stay_0))
@php $stay_0 = explode('.',$new->stay_0); @endphp @if($stay_0[1] == 'pdf' || $stay_0[1] == 'mp4') @else @endif
@if(!($stay_0[1] == 'pdf' || $stay_0[1] == 'mp4')) @endif
@endif @if(!is_null($new->stay_1))
@php $stay_1 = explode('.',$new->stay_1); @endphp @if($stay_1[1] == 'pdf' || $stay_1[1] == 'mp4') @else @endif
@if(!($stay_1[1] == 'pdf' || $stay_1[1] == 'mp4')) @endif
@endif @if(!is_null($new->stay_2))
@php $stay_2 = explode('.',$new->stay_2); @endphp @if($stay_2[1] == 'pdf' || $stay_2[1] == 'mp4') @else @endif
@if(!($stay_2[1] == 'pdf' || $stay_2[1] == 'mp4')) @endif
@endif @if(!is_null($new->stay_3))
@php $stay_3 = explode('.',$new->stay_3); @endphp @if($stay_3[1] == 'pdf' || $stay_3[1] == 'mp4') @else @endif
@if(!($stay_3[1] == 'pdf' || $stay_3[1] == 'mp4')) @endif
@endif @if(!is_null($new->stay_4))
@php $stay_4 = explode('.',$new->stay_4); @endphp @if($stay_4[1] == 'pdf' || $stay_4[1] == 'mp4') @else @endif
@if(!($stay_4[1] == 'pdf' || $stay_4[1] == 'mp4')) @endif
@endif
@endsection @section('inner_js') @endsection