@extends('admin.layouts.app') @section('panel')
@if (can('admin.branch.details') || can('admin.branch.status')) @endif @forelse($branches as $branch) @if (can('admin.branch.details') || can('admin.branch.status')) @endif @empty @endforelse
@lang('S.N.') @lang('Name') @lang('Code') @lang('Address') @lang('Email') | @lang('Mobile') @lang('Status')@lang('Action')
{{ $loop->index + $branches->firstItem() }} {{ __($branch->name) }} {{ $branch->code }} {{ strLimit(__($branch->address), 30) }} {{ @$branch->email }} {{ @$branch->mobile }} @php echo $branch->statusBadge; @endphp
@can('admin.branch.details') @lang('Details') @endcan @can('admin.branch.status') @if ($branch->status) @else @endif @endcan
{{ __($emptyMessage) }}
@if ($branches->hasPages()) @endif
@endsection @push('breadcrumb-plugins') @can('admin.branch.add') @lang('Add New') @endcan @endpush