first change
This commit is contained in:
19
Modules/Admin/resources/views/settings/create.blade.php
Normal file
19
Modules/Admin/resources/views/settings/create.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
{{ html()->form('POST')->route('setting.store')->class(['needs-validation'])->attributes(['enctype'=>'multipart/form-data', 'novalidate' ])->open() }}
|
||||
|
||||
@include('admin::settings.partials.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
109
Modules/Admin/resources/views/settings/edit.blade.php
Normal file
109
Modules/Admin/resources/views/settings/edit.blade.php
Normal file
@@ -0,0 +1,109 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
<!-- end page title -->
|
||||
|
||||
{{ html()->modelForm($setting, 'POST')->route('setting.store')->class(['needs-validation'])->attributes(['enctype=multipart/form-data'])->open() }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<div class="nav flex-column nav-pills text-center" id="v-pills-tab" role="tablist" aria-orientation="vertical">
|
||||
<a class="nav-link active mb-2" id="v-pills-home-tab" data-bs-toggle="pill" href="#v-pills-home" role="tab"
|
||||
aria-controls="v-pills-home" aria-selected="true">General</a>
|
||||
<a class="nav-link mb-2" id="v-pills-profile-tab" data-bs-toggle="pill" href="#v-pills-profile" role="tab"
|
||||
aria-controls="v-pills-profile" aria-selected="false" tabindex="-1">Appearance</a>
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
<div class="col-md-10">
|
||||
<div class="tab-content text-muted mt-md-0 mt-4" id="v-pills-tabContent">
|
||||
<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row gy-3">
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Name')->class('form-label') }}
|
||||
{{ html()->text('title')->class('form-control')->placeholder('Your Company Name') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Email')->class('form-label') }}
|
||||
{{ html()->email('email')->class('form-control')->placeholder('Email Address') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Mobile')->class('form-label') }}
|
||||
{{ html()->text('mobile')->class('form-control')->placeholder('Mobile Number') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Phone')->class('form-label') }}
|
||||
{{ html()->text('phone')->class('form-control')->placeholder('Phone') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Profit Margin')->class('form-label') }}
|
||||
{{ html()->text('margin')->class('form-control')->placeholder('Profit Margin') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Zip code')->class('form-label') }}
|
||||
{{ html()->text('zip_code')->class('form-control')->placeholder('Zip Code') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Address')->class('form-label') }}
|
||||
{{ html()->text('address')->class('form-control')->placeholder('Address') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Google Map')->class('form-label') }}
|
||||
{{ html()->text('google_map')->class('form-control')->placeholder('Google Map Link') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{{ html()->label('Logo')->class('form-label') }}
|
||||
{{ html()->file('logo_pic')->class('form-control dropify')->attributes([
|
||||
'data-default-file' => asset('storage/' . setting('logo_pic')),
|
||||
'data-height' => 200,
|
||||
]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable="$editable" label="Add" href="{{ route('setting.index') }}" />
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
78
Modules/Admin/resources/views/settings/index.blade.php
Normal file
78
Modules/Admin/resources/views/settings/index.blade.php
Normal file
@@ -0,0 +1,78 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('setting.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Create</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Title</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Description</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Email</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Address</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Phone</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($settinglists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->title }}</td>
|
||||
<td class="tb-col">{{ $item->description }}</td>
|
||||
<td class="tb-col">{{ $item->email }}</td>
|
||||
<td class="tb-col">{{ $item->address }}</td>
|
||||
<td class="tb-col">{{ $item->phone }}</td>
|
||||
<td class="tb-col">
|
||||
{!! $item->status_name !!}
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="tb-col">
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
@can('setting.show')
|
||||
<a href="{{ route('setting.show', $item->id) }}" class="link-info fs-15">
|
||||
<i class="ri-eye-fill"></i>
|
||||
</a>
|
||||
@endcan
|
||||
@can('setting.edit')
|
||||
<a href="{{ route('setting.edit', $item->id) }}" class="link-success fs-15 edit-item-btn"><i
|
||||
class="ri-edit-2-fill"></i></a>
|
||||
@endcan
|
||||
@can('setting.destroy')
|
||||
<a href="javascript:void(0);" data-link="{{ route('setting.destroy', $item->id) }}"
|
||||
data-id="{{ $item->id }}" class="link-danger fs-15 remove-item-btn"><i
|
||||
class="ri-delete-bin-fill"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('js')
|
||||
@endpush
|
@@ -0,0 +1,97 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<div class="card">
|
||||
<div class="card-body row gy-3">
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Name')->class('form-label') }}
|
||||
{{ html()->text('title')->class('form-control')->placeholder('Your Company Name')->required() }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Email')->class('form-label') }}
|
||||
{{ html()->email('email')->class('form-control')->placeholder('Email Address')->required() }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Mobile')->class('form-label') }}
|
||||
{{ html()->text('mobile')->class('form-control')->placeholder('Mobile Number') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Phone')->class('form-label') }}
|
||||
{{ html()->text('phone')->class('form-control')->placeholder('Phone') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-md-3">
|
||||
{{ html()->label('Profit Margin')->class('form-label') }}
|
||||
{{ html()->text('margin')->class('form-control')->placeholder('Profit Margin') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Zip code')->class('form-label') }}
|
||||
{{ html()->text('zip_code')->class('form-control')->placeholder('Zip Code') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Address')->class('form-label') }}
|
||||
{{ html()->text('address')->class('form-control')->placeholder('Address') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6">
|
||||
{{ html()->label('Google Map')->class('form-label') }}
|
||||
{{ html()->text('google_map')->class('form-control')->placeholder('Google Map Link') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable="$editable" label="Add" href="{{ route('setting.index') }}" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title mb-0">Publish</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{ html()->select('status', $status)->class('form-control select2')->required() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end card body -->
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title mb-0">Logo</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{ html()->file('logo', null)->class('form-control') }}
|
||||
|
||||
{{-- {{ html()->input('image', 'logo', null)->class('form-control dropify1') }} --}}
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 mt-2">
|
||||
@if (setting()->logo_pic)
|
||||
<img class="rounded-circle avatar-xl material-shadow" alt="200x200" src="{{ setting()->logo_pic }}">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end card body -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
59
Modules/Admin/resources/views/settings/show.blade.php
Normal file
59
Modules/Admin/resources/views/settings/show.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('setting.index') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div style="margin-bottom: 20px;">
|
||||
<p><b>Title:</b> <span>{{ $setting->title }}</span></p>
|
||||
<p><b>Description:</b> <span>{{ $setting->description }}</span></p>
|
||||
<p><b>Status:</b> <span class="{{ $setting->status == 11 ? 'text-success' : 'text-danger' }}">{{ $setting->status == 11 ? 'Active' : 'Inactive' }}</span></p>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<p><b>Email:</b> <span>{{ $setting->email }}</span></p>
|
||||
<p><b>Address:</b> <span>{{ $setting->address }}</span></p>
|
||||
<p><b>Phone:</b> <span>{{ $setting->phone }}</span></p>
|
||||
<p><b>Secondary Phone:</b> <span>{{ $setting->secondary_phone }}</span></p>
|
||||
<p><b>Google Map:</b> <span>{{ $setting->google_map }}</span></p>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<p><b>Thumb:</b></p>
|
||||
<div style="width: 25%; height: 200px;">
|
||||
<img src="{{ asset($setting->thumb) }}" style="max-width: 100%; max-height: 100%; object-fit: cover;">
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<p><b>Logo:</b></p>
|
||||
<div style="width: 25%; height: 200px;">
|
||||
<img src="{{ asset($setting->logo) }}" style="max-width: 100%; max-height: 100%; object-fit: cover;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On:</b> <span>{{ $setting->created_at }}</span></p>
|
||||
<p><b>Created By:</b> <span>{{ $setting->createdBy }}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On:</b> <span>{{ $setting->updated_at }}</span></p>
|
||||
<p><b>Updated By:</b> <span>{{ $setting->updatedBy }}</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endSection
|
Reference in New Issue
Block a user