migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Create Feature') }}
|
||||
@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 Feature') }}</h4>
|
||||
<div>
|
||||
<a href="{{ route('admin.features.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.features.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>{{ __('Title') }}</label>
|
||||
<input type="text" name="title" required class="form-control" placeholder="{{ __('Enter Title') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Backgroud Color') }}</label>
|
||||
<input type="color" name="bg_color" required class="form-control m-h-48" placeholder="{{ __('Enter Color') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Status') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="status" required="" class="form-control select-dropdown">
|
||||
<option value="1">{{ __('Active') }}</option>
|
||||
<option value="0">{{ __('Deactive') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label class="img-label">{{ __('Image') }}</label>
|
||||
<input type="file" name="image" class="form-control">
|
||||
</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
|
||||
@@ -0,0 +1,83 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@can('features-delete')
|
||||
<th style="width: 0; text-align:start">
|
||||
<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>{{ __('Image') }}</th>
|
||||
<th>{{ __('Title') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($features as $feature)
|
||||
<tr>
|
||||
@can('features-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="{{ $feature->id }}" data-url="{{ route('admin.features.delete-all') }}">
|
||||
<span class="table-custom-checkmark custom-checkmark"></span>
|
||||
</label>
|
||||
</td>
|
||||
@endcan
|
||||
<td>{{ ($features->currentPage() - 1) * $features->perPage() + $loop->iteration }}</td>
|
||||
<td>
|
||||
<img class="table-img" src="{{ asset($feature->image) }}" alt="img">
|
||||
</td>
|
||||
<td>{{ $feature->title }}</td>
|
||||
<td class="text-center w-150">
|
||||
@can('features-update')
|
||||
<label class="switch">
|
||||
<input type="checkbox" {{ $feature->status == 1 ? 'checked' : '' }} class="status"
|
||||
data-url="{{ route('admin.features.status', $feature->id) }}">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
@endcan
|
||||
</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">
|
||||
@can('features-update')
|
||||
<li>
|
||||
<a href="{{ route('admin.features.edit', $feature->id) }}">
|
||||
<i class="fal fa-pencil-alt"></i>
|
||||
{{ __('Edit') }}
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
@can('features-delete')
|
||||
<li>
|
||||
<a href="{{ route('admin.features.destroy', $feature->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
{{ $features->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Edit Feature') }}
|
||||
@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>{{ __('Edit Feature') }}</h4>
|
||||
<div>
|
||||
<a href="{{ route('admin.features.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.features.update', $feature->id) }}" 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>{{ __('Title') }}</label>
|
||||
<input type="text" name="title" value="{{ $feature->title }}" required class="form-control" placeholder="{{ __('Enter Title') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Backgroud Color') }}</label>
|
||||
<input type="color" name="bg_color" value="{{ $feature->bg_color }}" required class="form-control m-h-48" placeholder="{{ __('Enter Color') }}" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 mt-2">
|
||||
<label>{{ __('Status') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="status" required="" class="form-control select-dropdown">
|
||||
<option @selected($feature->status == 1) value="1">{{ __('Active') }}</option>
|
||||
<option @selected($feature->status == 0) value="0">{{ __('Deactive') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-5 mt-2 align-self-center">
|
||||
<label class="img-label">{{ __('Image') }}</label>
|
||||
<input type="file" name="image" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-1 mt-2 align-self-center mt-4">
|
||||
<img class="table-img" src="{{ asset($feature->image) }}" alt="img">
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,62 @@
|
||||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Features 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>{{ __('Features List') }}</h4>
|
||||
<a href="{{ route('admin.features.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.features.index') }}" method="GET" class="filter-form" table="#features-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="features-data">
|
||||
@include('admin.website-setting.features.datas')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('admin.components.multi-delete-modal')
|
||||
@endpush
|
||||
Reference in New Issue
Block a user