@extends('layouts.app') @section('title', trans('customer.list')) @section('content')

{{ link_to_route('customers.create', trans('customer.create'), [], ['class' => 'btn btn-success']) }}
{{ trans('customer.list') }} {{ trans('app.total') }} : {{ $customers->total() }} {{ trans('customer.customer') }}

{{ Form::open(['method' => 'get','class' => 'form-inline']) }} {!! FormField::text('q', ['value' => request('q'), 'label' => trans('customer.search'), 'class' => 'input-sm']) !!} {{ Form::submit(trans('customer.search'), ['class' => 'btn btn-sm']) }} {{ link_to_route('customers.index', trans('app.reset')) }} {{ Form::close() }}
@foreach($customers as $key => $customer) @endforeach
{{ trans('app.table_no') }} {{ trans('customer.name') }} {{ trans('contact.email') }} {{ trans('contact.phone') }} {{ trans('customer.projects_count') }} {{ trans('app.status') }}
{{ $customers->firstItem() + $key }} {{ $customer->nameLink() }} {{ $customer->email }} {{ $customer->phone }} @if ($customer->projects_count) {{ link_to_route('customers.projects', $customer->projects_count, $customer) }} @endif {!! $customer->status_label !!}
{{ $customers->appends(Request::except('page'))->render() }}
@endsection