Not able to Display View
-
i have created route and everything working file but when i am loading view it not displaying only header and footer is displaying can anyone guide me for this
-
@mital said in Not able to Display View:
i have created route and everything working file but when i am loading view it not displaying only header and footer is displaying can anyone guide me for this
Hello There,
Can you please help me with the screenshots or could you please let me know, is that a random page or any product, category etc page, or it can be an issue of cache.
Please run in terminal and then check.
php artisan cache:clear
php artisan config:cache
php artisan route:cache
php artisan optimize:clear -
Create Blade View
@php
$currentCustomer = auth()->guard('customer')->user();
@endphp
<meta name="csrf-token" content="{{ csrf_token() }}">
@extends('shop::customers.account.index')@section('page_title')
{{ __('shop::app.customer.account.events.create.page-title') }}@endsection
<script type="text/javascript">
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
</script>
@section('account-content')<div class="account-layout"> <div class="account-head mb-15"> <span class="back-icon"> <a href="{{ route('shop.customer.addresses.index') }}"><i class="icon icon-menu-back"></i></a> </span> <span class="account-heading">{{ __('shop::app.customer.events.create.title') }}</span> <span></span> </div> {!! view_render_event('bagisto.shop.customers.events.create.before') !!} <form id="customer-address-form"> <div class="account-table-content"> {!! view_render_event('bagisto.shop.customers.events.create_form_controls.before') !!}
<div class="control-group" :class="[errors.has('company_name') ? 'has-error' : '']">
<label for="event_name">{{ __('shop::app.customer.events.create.event_name') }}</label><input class="control" type="text" name="event_name" value="{{ old('event_name') }}" data-vv-as=""{{ __('shop::app.customer.events.create.event_name') }}""> <span class="control-error" v-text="errors.first('event_name')" v-if="errors.has('event_name')"> </span>
</div>
{!! view_render_event('bagisto.shop.customers.events.create_form_controls.event_name.after') !!}</form>
@endsectionApp.php
'events' => [
'index' => [
'page-title' => 'Events',
'title' => 'Events',
'add' => 'Add Events',
'edit' => 'Edit',
'empty' => 'You do not have any saved Events here, please try to create it by clicking the add button.',
'create' => 'Create Events',
'delete' => 'Delete',
'make-default' => 'Make Default',
'default' => 'Default',
'contact' => 'Contact',
'confirm-delete' => 'Do you really want to delete this address?',
'default-delete' => 'Default address cannot be changed.',
'enter-password' => 'Enter Your Password.',
],'create' => [ 'page-title' => 'Create Event', 'event_name' => 'Company name', 'first_name' => 'First name', 'last_name' => 'Last name', 'vat_id' => 'Vat id', 'vat_help_note' => '[Note: Use Country Code with VAT Id. Eg. INV01234567891]', 'title' => 'Crete Events', 'street-address' => 'Street Address', 'country' => 'Country', 'state' => 'State', 'select-state' => 'Select a region, state or province', 'city' => 'City', 'postcode' => 'Postal Code', 'phone' => 'Phone', 'submit' => 'Save Address', 'success' => 'Address have been successfully added.', 'error' => 'Address cannot be added.', ], 'edit' => [ 'page-title' => 'Edit Address', 'company_name' => 'Company name', 'first_name' => 'First name', 'last_name' => 'Last name', 'vat_id' => 'Vat id', 'title' => 'Edit Address', 'street-address' => 'Street Address', 'submit' => 'Save Address', 'success' => 'Address updated successfully.', ], 'delete' => [ 'success' => 'Address successfully deleted', 'failure' => 'Address cannot be deleted', 'wrong-password' => 'Wrong Password !', ], 'default-address' => 'Default Address', ],
-
@mital said in Not able to Display View:
Create Blade View
@php
$currentCustomer = auth()->guard('customer')->user();
@endphp
<meta name="csrf-token" content="{{ csrf_token() }}">
@extends('shop::customers.account.index')@section('page_title')
{{ __('shop::app.customer.account.events.create.page-title') }}@endsection
<script type="text/javascript">
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
</script>
@section('account-content')<div class="account-layout"> <div class="account-head mb-15"> <span class="back-icon"> <a href="{{ route('shop.customer.addresses.index') }}"><i class="icon icon-menu-back"></i></a> </span> <span class="account-heading">{{ __('shop::app.customer.events.create.title') }}</span> <span></span> </div> {!! view_render_event('bagisto.shop.customers.events.create.before') !!} <form id="customer-address-form"> <div class="account-table-content"> {!! view_render_event('bagisto.shop.customers.events.create_form_controls.before') !!}
<div class="control-group" :class="[errors.has('company_name') ? 'has-error' : '']">
<label for="event_name">{{ __('shop::app.customer.events.create.event_name') }}</label><input class="control" type="text" name="event_name" value="{{ old('event_name') }}" data-vv-as=""{{ __('shop::app.customer.events.create.event_name') }}""> <span class="control-error" v-text="errors.first('event_name')" v-if="errors.has('event_name')"> </span>
</div>
{!! view_render_event('bagisto.shop.customers.events.create_form_controls.event_name.after') !!}</form>
@endsectionApp.php
'events' => [
'index' => [
'page-title' => 'Events',
'title' => 'Events',
'add' => 'Add Events',
'edit' => 'Edit',
'empty' => 'You do not have any saved Events here, please try to create it by clicking the add button.',
'create' => 'Create Events',
'delete' => 'Delete',
'make-default' => 'Make Default',
'default' => 'Default',
'contact' => 'Contact',
'confirm-delete' => 'Do you really want to delete this address?',
'default-delete' => 'Default address cannot be changed.',
'enter-password' => 'Enter Your Password.',
],'create' => [ 'page-title' => 'Create Event', 'event_name' => 'Company name', 'first_name' => 'First name', 'last_name' => 'Last name', 'vat_id' => 'Vat id', 'vat_help_note' => '[Note: Use Country Code with VAT Id. Eg. INV01234567891]', 'title' => 'Crete Events', 'street-address' => 'Street Address', 'country' => 'Country', 'state' => 'State', 'select-state' => 'Select a region, state or province', 'city' => 'City', 'postcode' => 'Postal Code', 'phone' => 'Phone', 'submit' => 'Save Address', 'success' => 'Address have been successfully added.', 'error' => 'Address cannot be added.', ], 'edit' => [ 'page-title' => 'Edit Address', 'company_name' => 'Company name', 'first_name' => 'First name', 'last_name' => 'Last name', 'vat_id' => 'Vat id', 'title' => 'Edit Address', 'street-address' => 'Street Address', 'submit' => 'Save Address', 'success' => 'Address updated successfully.', ], 'delete' => [ 'success' => 'Address successfully deleted', 'failure' => 'Address cannot be deleted', 'wrong-password' => 'Wrong Password !', ], 'default-address' => 'Default Address', ],