@extends('layouts.master') @section('css') @endsection @section('title') Roles @endsection @section('content') @isset($role) Edit Role @else Add Role @endisset Go Back @isset($role) @method('put') @else @endisset @csrf Name Permissions hasPermissionTo('view dashboard') ? 'checked' : '' }} @endisset> Dashboard hasPermissionTo('view receipt') ? 'checked' : '' }} @endisset> Receipt hasPermissionTo('view payment') ? 'checked' : '' }} @endisset> Payment hasPermissionTo('view contra') ? 'checked' : '' }} @endisset> Contra hasPermissionTo('view journal') ? 'checked' : '' }} @endisset> Journal hasPermissionTo('view expense') ? 'checked' : '' }} @endisset> Expense hasPermissionTo('view delivery note') ? 'checked' : '' }} @endisset> Delivery Note hasPermissionTo('view purchase') ? 'checked' : '' }} @endisset> Purchase hasPermissionTo('view purchase return') ? 'checked' : '' }} @endisset> Purchase Return hasPermissionTo('view sales') ? 'checked' : '' }} @endisset> Sales hasPermissionTo('edit sales') ? 'checked' : '' }} @endisset> Edit Sales hasPermissionTo('cancel sales') ? 'checked' : '' }} @endisset> Cancel Sales hasPermissionTo('view sales return') ? 'checked' : '' }} @endisset> Sales Return hasPermissionTo('view stock journal') ? 'checked' : '' }} @endisset> Stock Journal hasPermissionTo('view ledger report') ? 'checked' : '' }} @endisset> Ledger Report hasPermissionTo('view stock ledger') ? 'checked' : '' }} @endisset> Stock Ledger hasPermissionTo('view trial balance') ? 'checked' : '' }} @endisset> Trial Balance hasPermissionTo('view profit and loss account') ? 'checked' : '' }} @endisset> Profit & Loss Account hasPermissionTo('view balance sheet') ? 'checked' : '' }} @endisset> Balance Sheet hasPermissionTo('view groups') ? 'checked' : '' }} @endisset> Groups hasPermissionTo('view ledger') ? 'checked' : '' }} @endisset> Ledger hasPermissionTo('view voucher type') ? 'checked' : '' }} @endisset> Voucher Type hasPermissionTo('view stock group') ? 'checked' : '' }} @endisset> Stock Group hasPermissionTo('view stock item') ? 'checked' : '' }} @endisset> Stock Item hasPermissionTo('view branch') ? 'checked' : '' }} @endisset> Branch hasPermissionTo('view stock location') ? 'checked' : '' }} @endisset> Stock Location hasPermissionTo('view unit') ? 'checked' : '' }} @endisset> Unit hasPermissionTo('view price slab') ? 'checked' : '' }} @endisset> Price Slab hasPermissionTo('view staff control') ? 'checked' : '' }} @endisset> Staff Control hasPermissionTo('view company profile') ? 'checked' : '' }} @endisset> Company Profile hasPermissionTo('view roles') ? 'checked' : '' }} @endisset> Roles hasPermissionTo('view settings') ? 'checked' : '' }} @endisset> Settings hasPermissionTo('view profit margin') ? 'checked' : '' }} @endisset> Profit Margin hasPermissionTo('view cash flow') ? 'checked' : '' }} @endisset> Cash Flow hasPermissionTo('view cost allocation') ? 'checked' : '' }} @endisset> Cost Allocation Report hasPermissionTo('view gst report') ? 'checked' : '' }} @endisset> Gst Report hasPermissionTo('view day book') ? 'checked' : '' }} @endisset> Day Book hasPermissionTo('view passes') ? 'checked' : '' }} @endisset> Passes hasPermissionTo('view stock category') ? 'checked' : '' }} @endisset> Stock Category hasPermissionTo('view cash balance') ? 'checked' : '' }} @endisset> View Cash/Bank Balance hasPermissionTo('view outstanding report') ? 'checked' : '' }} @endisset> View Outstanding Report hasPermissionTo('delete ac voucher') ? 'checked' : '' }} @endisset> Delete AC Vouchers hasPermissionTo('view fund flow') ? 'checked' : '' }} @endisset> Fund Flow hasPermissionTo('view import queue') ? 'checked' : '' }} @endisset> Import Queue hasPermissionTo('view stock movement analysis') ? 'checked' : '' }} @endisset> View Stock Movement Analysis hasPermissionTo('view customer report') ? 'checked' : '' }} @endisset> View Customer Report hasPermissionTo('view itemwise sales report') ? 'checked' : '' }} @endisset> View Itemwise Sales Report @if (Auth::user()->company != null ? Auth::user()->company->software_type == 'mop' : Auth::user()->staff->company->software_type == 'mop') hasPermissionTo('production request') ? 'checked' : '' }} @endisset> Production Requests @else @endif hasPermissionTo('edit collection') ? 'checked' : '' }} @endisset> Edit Collection hasPermissionTo('collection settlement') ? 'checked' : '' }} @endisset> Collection Settlement @isset($role) Update Role @else Add Role @endisset @endsection @section('script') @endsection