@extends('backend.layouts_backend.master2') @section('title') InActive Branches @endsection @section('content') {{-- header --}}
{{-- end header --}}#Id | Branch Code | Branch Status | Branch Name | Branch Address | Use Status | Created By | Action |
---|---|---|---|---|---|---|---|
{{ $key + 1 ?? 'N/A' }} | {{ $branch->branch_code ?? 'N/A' }} | @if ($branch->branch_status == 1) {{ get_status_message($branch->branch_status) ?? '' }} @elseif($branch->branch_status == 1) {{ get_status_message($branch->branch_status) ?? '' }} @else No Status @endif | {{ $branch->branch_name ?? 'N/A' }} | {{ $branch->branch_address ?? 'N/A' }} | @php $checkBranchInUse = $branch->products()->exists() || $branch->product_stock_reconciliations()->exists(); @endphp @if ($checkBranchInUse) In Use @else Not In Use @endif | @php $user = \App\Models\User::find($branch->created_by); @endphp{{ $user->name ?? 'N/A' }} |
{{-- --}}
{{-- --}}
{{--
--}}
{{-- delete --}}
@if (!$checkBranchInUse)
@endif
{{-- restore --}}
|