@extends('admin.settings.setting-layout') @section('title') Branches @endsection @section('content')

Branch ({{ count(@$branch) }})

@if (userCan('branch.update') || userCan('branch.delete')) @endif @foreach($branch as $branch_use) @endforeach
# Name Branch Code Country City State AddressAction
{{ $loop->iteration }} {{$branch_use->name}} {{$branch_use->branch_code}} {{$branch_use->country}} {{$branch_use->state}} {{$branch_use->city}} {{$branch_use->address}} @if (userCan('branch.update')) @endif @if (userCan('branch.delete'))
@method('DELETE') @csrf
@endif
{{-- edit --}} @if ( $status == "edit" && userCan('branch.update'))

Edit Branch

{{ __('create') }}
@csrf @method('PUT')
@error('name') {{ __($message) }} @enderror
@error('branch_code') {{ __($message) }} @enderror
@error('address') {{ __($message) }} @enderror
@endif {{-- create --}} @if ( $status == "insert" && userCan('branch.create'))

Create Branch

@if (userCan('source.create'))
@csrf
@error('name') {{ __($message) }} @enderror
@error('branch_code') {{ __($message) }} @enderror
@error('address') {{ __($message) }} @enderror
@else

{{ __('dont_have_permission') }}

@endif
@endif
@endsection @section('script') @endsection