first commit
This commit is contained in:
		
							
								
								
									
										75
									
								
								resources/views/incomes/customers/index.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								resources/views/incomes/customers/index.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,75 @@
 | 
			
		||||
@extends('layouts.admin')
 | 
			
		||||
 | 
			
		||||
@section('title', trans_choice('general.customers', 2))
 | 
			
		||||
 | 
			
		||||
@permission('create-incomes-customers')
 | 
			
		||||
@section('new_button')
 | 
			
		||||
<span class="new-button"><a href="{{ url('incomes/customers/create') }}" class="btn btn-success btn-sm"><span class="fa fa-plus"></span>  {{ trans('general.add_new') }}</a></span>
 | 
			
		||||
@endsection
 | 
			
		||||
@endpermission
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
<!-- Default box -->
 | 
			
		||||
<div class="box box-success">
 | 
			
		||||
    <div class="box-header">
 | 
			
		||||
        {!! Form::open(['url' => 'incomes/customers', 'role' => 'form', 'method' => 'GET']) !!}
 | 
			
		||||
        <div class="pull-left">
 | 
			
		||||
            <span class="title-filter">{{ trans('general.search') }}:</span>
 | 
			
		||||
            {!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
 | 
			
		||||
            {!! Form::button('<span class="fa fa-filter"></span>  ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="pull-right">
 | 
			
		||||
            <span class="title-filter">{{ trans('general.show') }}:</span>
 | 
			
		||||
            {!! Form::select('limit', $limits, request('limit', setting('general.list_limit', '25')), ['class' => 'form-control input-filter input-sm', 'onchange' => 'this.form.submit()']) !!}
 | 
			
		||||
        </div>
 | 
			
		||||
        {!! Form::close() !!}
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.box-header -->
 | 
			
		||||
 | 
			
		||||
    <div class="box-body">
 | 
			
		||||
        <div class="table table-responsive">
 | 
			
		||||
            <table class="table table-bordered table-striped table-hover" id="tbl-customers">
 | 
			
		||||
                <thead>
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <th>@sortablelink('name', trans('general.name'))</th>
 | 
			
		||||
                        <th>@sortablelink('email', trans('general.email'))</th>
 | 
			
		||||
                        <th>@sortablelink('phone', trans('general.phone'))</th>
 | 
			
		||||
                        <th>@sortablelink('enabled', trans('general.status'))</th>
 | 
			
		||||
                        <th style="width: 15%;">{{ trans('general.actions') }}</th>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                </thead>
 | 
			
		||||
                <tbody>
 | 
			
		||||
                @foreach($customers as $item)
 | 
			
		||||
                    <tr>
 | 
			
		||||
                        <td><a href="{{ url('incomes/customers/' . $item->id . '/edit') }}">{{ $item->name }}</a></td>
 | 
			
		||||
                        <td>{{ $item->email }}</td>
 | 
			
		||||
                        <td>{{ $item->phone }}</td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            @if ($item->enabled)
 | 
			
		||||
                                <span class="label label-success">{{ trans('general.enabled') }}</span>
 | 
			
		||||
                            @else
 | 
			
		||||
                                <span class="label label-danger">{{ trans('general.disabled') }}</span>
 | 
			
		||||
                            @endif
 | 
			
		||||
                        </td>
 | 
			
		||||
                        <td>
 | 
			
		||||
                            <a href="{{ url('incomes/customers/' . $item->id . '/edit') }}" class="btn btn-primary btn-xs"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> {{ trans('general.edit') }}</a>
 | 
			
		||||
 | 
			
		||||
                            @permission('delete-incomes-customers')
 | 
			
		||||
                            {!! Form::deleteButton($item, 'incomes/customers') !!}
 | 
			
		||||
                            @endpermission
 | 
			
		||||
                        </td>
 | 
			
		||||
                    </tr>
 | 
			
		||||
                @endforeach
 | 
			
		||||
                </tbody>
 | 
			
		||||
            </table>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.box-body -->
 | 
			
		||||
    <div class="box-footer">
 | 
			
		||||
        @include('partials.admin.pagination', ['items' => $customers, 'type' => 'customers'])
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.box-footer -->
 | 
			
		||||
</div>
 | 
			
		||||
<!-- /.box -->
 | 
			
		||||
@endsection
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user