You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/admin/customer/customerIndex.blade.php

112 lines
4.2 KiB
PHTML

2 years ago
@extends('admin.adminlayout')
@section('page_title')
{{__("Customers")}}
-
@endsection
@section('content')
<div class="container">
@include('starter-kit::component.err')
<form action="">
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="name">
{{__("Name")}}
</label>
<input type="text" id="name" name="name" value="{{request()->input('name','')}}" placeholder="{{__("Name")}}"
class="form-control">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="mobile">
{{__("Mobile")}}
</label>
<input type="text" id="mobile" name="mobile" value="{{request()->input('mobile','')}}" placeholder="{{__("Mobile")}}"
class="form-control">
</div>
</div>
<div class="col-md">
<br>
<input type="checkbox" @if(request()->has('colleague')) checked @endif id="colleague" class="mt-3" name="colleague" value="1">
&nbsp;
<label for="colleague" >
{{__("Colleague")}}
</label>
</div>
<div class="col-md">
<br>
<button class="btn btn-secondary">
{{__("Search")}}
</button>
</div>
</div>
</form>
<form action="{{route('admin.customer.bulk')}}" method="post" class="bulk-action mt-3" >
2 years ago
@csrf
<table class="table table-striped table-bordered text-center">
2 years ago
<thead class="thead-dark">
<tr>
<th>
#
2 years ago
</th>
<th>
{{__("Name")}}
</th>
<th>
{{__("Email")}}
</th>
<th>
{{__("Mobile")}}
</th>
<th>
{{__("Action")}}
</th>
<th>
<input type="checkbox" class="chkall"/>
2 years ago
</th>
</tr>
</thead>
<tbody>
@foreach ($customers as $customer)
<tr>
<td>
{{$customer->id}}
</td>
<td>
{{$customer->name}}
</td>
<td>
{{$customer->email}}
</td>
<td>
{{$customer->mobile}}
</td>
<td>
<a href="{{route('admin.customer.edit',$customer->id)}}" class="btn btn-primary">
<i class="ri-edit-2-line"></i>
2 years ago
</a>
<a href="{{route('admin.customer.delete',$customer->id)}}"
class="btn btn-danger delete-confirm">
<i class="ri-close-line"></i>
2 years ago
</a>
</td>
<td>
<input type="checkbox" name="id[]" value="{{$customer->id}}" class="m-2 chkbox"/>
</td>
2 years ago
</tr>
@endforeach
</tbody>
</table>
@include('starter-kit::component.bulk')
</form>
<div class="text-center pt-3">
{{$customers->appends(request()->input())->links()}}
</div>
<a class="btn-add" href="{{route('admin.customer.create')}}">
<i class="ri-add-line"></i>
</a>
2 years ago
</div>
@endsection