@extends('layouts.app_main') @section('content')
Personal Details
@if (session('success'))
{{ session('success') }}
@endif
@if(file_exists('storage/license/'.Auth::user()->id.".jpg")) @else @endif
{{ Auth::user()->license->type }}
{{ Auth::user()->license->expiry }}








@endsection @section('javascript') function gup(type) { url = location.href; type = type.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+type+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( url ); return results == null ? null : results[1]; } $(function () { $('#datetimepicker1').datepicker({ format: 'yyyy-mm-dd', zIndexOffset: '1001', }); if(gup('edit')){ $('.show_text').hide(); $('.show_form').show(); }else{ $('.show_text').show(); $('.show_form').hide(); } }); $('.edit_button').on('click',function(){ window.location.href = location.href + "?edit=1"; }); $(function () { $('#datetimepicker1').datepicker({ format: 'yyyy-mm-dd', zIndexOffset: '1001', }); if(gup('edit')){ $('.show_text').hide(); $('.show_form').show(); }else{ $('.show_text').show(); $('.show_form').hide(); } }); @endsection