migrate to gtea from bistbucket
This commit is contained in:
80
resources/views/admin/testimonials/create.blade.php
Normal file
80
resources/views/admin/testimonials/create.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Add New Testimonial') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="erp-table-section">
|
||||
<div class="container-fluid">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{ __('Add New Testimonial') }}</h4>
|
||||
<div>
|
||||
<a href="{{ route('admin.testimonials.index') }}" class="theme-btn print-btn text-light">
|
||||
<i class="fas fa-list me-1"></i>
|
||||
{{ __("View List") }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="order-form-section p-16">
|
||||
<form action="{{ route('admin.testimonials.store') }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
|
||||
<div class="add-suplier-modal-wrapper">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Client Name') }}</label>
|
||||
<input type="text" name="client_name" required class="form-control" placeholder="{{ __('Enter Client Name') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Stars') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="star" required="" class="form-control select-dropdown">
|
||||
<option value="1">{{ __('1') }}</option>
|
||||
<option value="2">{{ __('2') }}</option>
|
||||
<option value="3">{{ __('3') }}</option>
|
||||
<option value="4">{{ __('4') }}</option>
|
||||
<option value="5" selected>{{ __('5') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Works At') }}</label>
|
||||
<input type="text" name="work_at" required class="form-control" placeholder="{{ __('Enter text') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label class="img-label">{{ __('Client Image') }}</label>
|
||||
<input type="file" name="client_image" class="form-control" >
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-12 mt-2">
|
||||
<label>{{ __('Review') }}</label>
|
||||
<textarea name="text" class="form-control" placeholder="{{ __('Enter review message here') }}"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<a href="" class="theme-btn border-btn m-2">{{__('Cancel')}}</a>
|
||||
<button class="theme-btn m-2 submit-btn">{{__('Save')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
79
resources/views/admin/testimonials/datas.blade.php
Normal file
79
resources/views/admin/testimonials/datas.blade.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@can('testimonials-delete')
|
||||
<th>
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
|
||||
<label class="table-custom-checkbox">
|
||||
<input type="checkbox" class="table-hidden-checkbox selectAllCheckbox">
|
||||
<span class="table-custom-checkmark custom-checkmark"></span>
|
||||
</label>
|
||||
<i class="fal fa-trash-alt delete-selected"></i>
|
||||
</div>
|
||||
</th>
|
||||
@endcan
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Stars') }}</th>
|
||||
<th>{{ __('Client Name') }}</th>
|
||||
<th>{{ __('Work At') }}</th>
|
||||
<th>{{ __('Client Image') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($testimonials as $testimonial)
|
||||
<tr>
|
||||
@can('testimonials-delete')
|
||||
<td class="w-60 checkbox text-start">
|
||||
<label class="table-custom-checkbox">
|
||||
<input type="checkbox" name="ids[]" class="table-hidden-checkbox checkbox-item"
|
||||
value="{{ $testimonial->id }}" data-url="{{ route('admin.testimonials.delete-all') }}">
|
||||
<span class="table-custom-checkmark custom-checkmark"></span>
|
||||
</label>
|
||||
<i></i>
|
||||
</td>
|
||||
@endcan
|
||||
<td>{{ ($testimonials->currentPage() - 1) * $testimonials->perPage() + $loop->iteration }}</td>
|
||||
<td>
|
||||
@for ($i = 0; $i < 5; $i++)
|
||||
<i @class(['fas fa-star ', 'text-warning' => $testimonial->star > $i])></i>
|
||||
@endfor
|
||||
</td>
|
||||
<td>{{ $testimonial->client_name }}</td>
|
||||
<td>{{ $testimonial->work_at }}</td>
|
||||
<td>
|
||||
<img class="table-img" src="{{ asset($testimonial->client_image) }}" alt="img">
|
||||
</td>
|
||||
<td class="d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="{{ route('admin.testimonials.edit', $testimonial->id) }}">
|
||||
<i class="fal fa-pencil-alt"></i>
|
||||
{{ __('Edit') }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('admin.testimonials.destroy', $testimonial->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
{{ $testimonials->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
84
resources/views/admin/testimonials/edit.blade.php
Normal file
84
resources/views/admin/testimonials/edit.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Edit Testimonial') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="erp-table-section">
|
||||
{{-- {{ dd($testimonial) }} --}}
|
||||
<div class="container-fluid">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{__('Edit Testimonial') }}</h4>
|
||||
<div>
|
||||
<a href="{{ route('admin.testimonials.index') }}" class="theme-btn print-btn text-light">
|
||||
<i class="fas fa-list me-1"></i>
|
||||
{{ __("View List") }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="order-form-section p-16">
|
||||
{{-- form start --}}
|
||||
<form action="{{ route('admin.testimonials.update',['testimonial'=>$testimonial]) }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
@method('put')
|
||||
|
||||
<div class="add-suplier-modal-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Client Name') }}</label>
|
||||
<input type="text" name="client_name" required class="form-control" value="{{ $testimonial->client_name }}" placeholder="{{ __('Enter Client Name') }}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Stars') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="star" required="" class="form-control select-dropdown">
|
||||
<option @selected($testimonial->star == 1) value="1">{{ __('1') }}</option>
|
||||
<option @selected($testimonial->star == 2) value="2">{{ __('2') }}</option>
|
||||
<option @selected($testimonial->star == 3) value="3">{{ __('3') }}</option>
|
||||
<option @selected($testimonial->star == 4) value="4">{{ __('4') }}</option>
|
||||
<option @selected($testimonial->star == 5) value="5">{{ __('5') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Works At') }}</label>
|
||||
<input type="text" name="work_at" required class="form-control" placeholder="{{ __('Enter text') }}" value="{{ $testimonial->work_at ?? '' }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-5 mt-2 align-self-center">
|
||||
<label class="img-label">{{ __('Client Image') }}</label>
|
||||
<input type="file" name="client_image" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1 mt-2 align-self-center mt-4">
|
||||
<img class="img-fluid table-img" src="{{ asset($testimonial->client_image) }}" alt="Img">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 mt-2">
|
||||
<label>{{ __('Review') }}</label>
|
||||
<textarea name="text" id="" class="form-control" placeholder="{{ __('Enter review message here') }}">{{ $testimonial->text }}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<a href="" class="theme-btn border-btn m-2">{{__('Cancel')}}</a>
|
||||
<button class="theme-btn m-2 submit-btn">{{__('Update')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{-- form end --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
60
resources/views/admin/testimonials/index.blade.php
Normal file
60
resources/views/admin/testimonials/index.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Testimonials List') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="erp-table-section">
|
||||
<div class="container-fluid">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{ __('Testimonials List') }}</h4>
|
||||
<a href="{{ route('admin.testimonials.create') }}" class="theme-btn print-btn text-light">
|
||||
<i class="far fa-plus" aria-hidden="true"></i>
|
||||
{{ __('Create New') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16-0">
|
||||
<form action="{{ route('admin.testimonials.index') }}" method="GET" class="filter-form" table="#testimonials-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 margin-l-16">
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="per_page" class="form-control">
|
||||
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||||
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||||
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||||
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
<div class="table-search position-relative">
|
||||
<input class="form-control searchInput" type="text" name="search" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
|
||||
<span class="position-absolute">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round" />
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="testimonials-data">
|
||||
@include('admin.testimonials.datas')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('admin.components.multi-delete-modal')
|
||||
@endpush
|
||||
Reference in New Issue
Block a user