@extends('layouts.master') @section('title') {{ __('report.allBranches') }} @stop @section('css') @endsection @section('page-header')
@endsection @section('content') @if (session('success'))

{{ session('success') }}
@endif
@can('add branch') @endcan
@foreach (App\Models\branchs::all() as $key => $branch) @endforeach
# {{ __('users.branch_name') }} {{ __('users.Location') }} {{ __('home.tybe') }} {{ __('home.main_branch') }}
{{ $key + 1 }} {{ $branch->name }} {{ $branch->place }} @if($branch->type == 1) {{ __('home.sub_branch') }} @else {{ __('home.main_branch') }} @endif @if($branch->branch_id) @php $mainBranch = App\Models\branchs::find($branch->branch_id); @endphp {{ $mainBranch ? $mainBranch->name : __('home.not_found') }} @else -- @endif
@endsection @section('js') @endsection